Skip to content

Circles

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

ParameterDescription
cxThe x coordinate of the center of the circle.
cyThe y coordinate of the center of the circle.
rRadius of the circle.

Example

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

circle.png


Return to the Graphics Component Reference documentation.