Circle

Use circle() method 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

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


Return to Graphics component

results matching ""

    No results matching ""