Cocos Creator
Ellipse 
The ellipse() method is used to create an ellipse.
| Parameter | Description | 
|---|---|
| cx | The x coordinate of the center of the ellipse. | 
| cy | The y coordinate of the center of the ellipse. | 
| rx | The x radius of the ellipse. | 
| ry | The y radius of the ellipse. | 
Example 
ts
const ctx = node.getComponent(Graphics);
ctx.ellipse(200,100, 200,100);
ctx.stroke();
Return to the Graphics Component Reference documentation.
