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
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