fillColor
The fillColor
property sets or returns the color used for the fill.
Example
var ctx = node.getComponent(cc.Graphics);
ctx.fillColor = new cc.Color().fromHEX('#0000ff');
ctx.rect(20, 20, 250, 200);
ctx.fill();
Return to the Graphics Component Reference documentation.