如何在Paper.js中更改路径段的关节几何形状?

时间:2018-10-15 14:20:48

标签: paperjs

我正在使用path = paper.Path(point1, point2)path.add(pointN)创建折线:

enter image description here

我想要用圆形制作的关节,如下所示:

enter image description here

我该怎么做?

1 个答案:

答案 0 :(得分:3)

path.strokeJoin设置为'miter','round'或'bevel'(默认为'miter'),并将path.strokeCap设置为'round','square'或'butt'(默认为“对接”)。

相关问题