fillColor

The fillColor property sets or returns the color used for the fill.

实例

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


Return to Graphics component

results matching ""

    No results matching ""