strokeColor

strokeColor 属性设置或返回用于笔触的颜色。

实例

const ctx = node.getComponent(Graphics);
ctx.lineWidth = 2;
ctx.strokeColor = hexToColor('#0000ff');
ctx.rect(20,20,250,200);
ctx.stroke();


返回 Graphics 组件参考

条与 "" 相匹配的结果

    没有与 "" 匹配的结果