Ellipse

Use ellipse() method to create an ecllipse.

Parameter Description
cx The x coordinate of the center of the circle
cy The y coordinate of the center of the circle
rx The x radius of the circle.
ry The y radius of the circle.

Example

var ctx = node.getComponent(cc.Graphics);
ctx.ellipse(200,100, 200,100);
ctx.fill();


Return to Graphics Component Reference.

results matching ""

    No results matching ""