drawCircle

The drawCircle method draws a circle.

Syntax

drawCircle( x, y, radius, thickness, color )

Arguments

Argument Description
x The x co-ordinate for the center of the circle, in pixels.
y

The y co-ordinate for the center of the circle, in pixels.

TIP: The top left corner of the frame has co-ordinates 0,0.

radius The radius of the circle.
thickness The line thickness, in pixels.
color The line color. See the function rgb.

Returns

Nothing.

Example

drawCircle(500, 500, 100, 3, rgb(255, 255, 255))