a2FillCircle

This command will draw a filled circle on the screen.

  Syntax
a2FillCircle x, y, radius, color
  Parameters
x
Float
This value specifies the X coordinate of the circle center.
y
Float
This value specifies the Y coordinate of the circle center.
radius
Float
This value specifies the radius of the circle.
color
Integer
This value is a 32 bit integer specifying alpha, red, green, and blue color levels of the circle.

  Returns

This command does not return a value.

  Description

This command will draw a filled circle on the screen. The filled circle is not anti-aliased. Note that drawing an unfilled circle with the same parameters will smooth the edges of the circle.

  Example Code
a2FillCircle screen width()/2, screen height()/2, 100, 0xFFFF0000

WAIT KEY

rem Draw an unfilled circle to smooth the filled circle
a2Circle screen width()/2, screen height()/2, 100, 0xFFFF0000

WAIT KEY
  See also

a2Circle
Advanced 2D Index
Main Menu