fillColor

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

实例

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


返回 绘图组件

results matching ""

    No results matching ""