Line Width
The lineWidth
defines the width of drawing line for stroke
function.
Parameter | Description |
---|---|
number | The width of the current line, in pixels. |
Example
var ctx = node.getComponent(cc.GraphicsComponent);
ctx.lineWidth = 20;
ctx.rect(20,20,80,100);
ctx.stroke();
Return to the Graphics Component Reference documentation.