|
a2FillCircle
This command will draw a filled circle on the screen.
a2FillCircle x, y, radius, color
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.
This command does not return a value.
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.
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
a2Circle
Advanced 2D Index
Main Menu
|