StrokeColor

The strokeColor property sets or returns the color used for the stroke.

Example

var ctx = node.getComponent(cc.Graphics);
ctx.lineWidth = 2;
ctx.strokeColor = cc.hexToColor('#0000ff');
ctx.rect(20,20,250,200);
ctx.fill();


Return to Graphics Component Reference.

results matching ""

    No results matching ""