Skip to content
教程样式描边

描边颜色和宽度设置教程

在初始化一个图形时,通过 strokestrokeWidth 属性设置可以指定描边的颜色和线宽,也可以通过 stroke()strokeWidth() 方法进行设置。

操作指令:鼠标移动到五边形,改变其描边颜色与宽度。