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

const ctx = node.getComponent(Graphics);
ctx.lineWidth = 20;
ctx.rect(20,20,80,100);
ctx.stroke();


Return to the Graphics Component Reference documentation.

results matching ""

    No results matching ""