fillColor

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

实例

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


Return to Graphics component

results matching ""

    No results matching ""