ceremcem
ceremcem

Reputation: 4360

How to change path segment joint geometry in Paper.js?

I'm using path = paper.Path(point1, point2) and path.add(pointN) to create a polyline:

enter image description here

I want the joints made with circles, like the following:

enter image description here

How can I make this?

Upvotes: 0

Views: 231

Answers (1)

arthur.sw
arthur.sw

Reputation: 11669

Set path.strokeJoin to 'miter', 'round' or 'bevel' (default is 'miter'), and path.strokeCap to 'round', 'square' or 'butt' (default is 'butt').

Upvotes: 3

Related Questions