参考 strokeWeight()

strokeWeight()

设置点、线和形状轮廓的笔画宽度。

需要注意的是:strokeWeight() 会受到形状变换的影响,特别是在使用了 scale() 函数的情况下。

示例

语法

strokeWeight(weight)

参数

weight

笔画的粗细(由像素数衡量)。

Notice any errors or typos? Please let us know. Please feel free to edit src/core/shape/attributes.js and open a pull request!

相关参考