Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 513 Bytes

File metadata and controls

23 lines (16 loc) · 513 Bytes

Circles

The circle() method is used to create a circle.

Parameter Description
cx The x coordinate of the center of the circle.
cy The y coordinate of the center of the circle.
r Radius of the circle.

Example

const ctx = node.getComponent(Graphics);
ctx.circle(200,200, 200);
ctx.stroke();


Return to the Graphics Component Reference documentation.