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 = new cc.Color().fromHEX('#0000ff');
ctx.rect(20, 20, 250, 200);
ctx.fill();


Return to the Graphics Component Reference documentation..

results matching ""

    No results matching ""