Canvas.drawCircle

Syntax

drawCircle(cx: Number, cy: Number, r: Number, drawFill: Boolean, drawStroke: Boolean);

Parameters

cx. X coordinate of the circle center.

cy. Y coordinate of the circle center.

r. Circle radius.

drawFill. It determines whether circle is filled. If the parameter is set to True, circle is filled.

drawStroke. It determines whether circle borders are rendered. If the parameter is set to True, borders are rendered.

Description

The drawCircle method draws a circle on the canvas.

Comments

The circle is displayed on the canvas after calling the Canvas.flush method.

Example

The example of method use is given in description of the Canvas.drawPoly method.

See also:

Canvas