fillColor

fillColor 属性设置或返回用于填充的颜色。

实例

var ctx = node.getComponent(Graphics);
ctx.fillColor = new Color().fromHEX('#0000ff');
ctx.rect(20,20,250,200);
ctx.stroke();


返回 Graphics 组件参考

results matching ""

    No results matching ""