|
a2FillEllipse
This command will draw a filled ellipse on the screen.
a2FillEllipse x, y, xradius, yradius, color
x
Float
This value specifies the X coordinate of the ellipse center.
y
Float
This value specifies the Y coordinate of the ellipse center.
xradius
Float
This value specifies the horizontal radius of the ellipse.
yradius
Float
This value specifies the vertical radius of the ellipse.
color
Integer
This value is a 32 bit integer specifying alpha, red, green, and blue color levels of the ellipse.
This command does not return a value.
This command will draw a filled ellipse on the screen. The filled ellipse is not anti-aliased. Note that drawing an unfilled ellipse with the same parameters will smooth the edges of the ellipse.
a2FillEllipse screen width()/2, screen height()/2, 100, 50, 0xFFFF0000
WAIT KEY
rem Draw an unfilled ellipse to smooth the filled ellipse
a2Ellipse screen width()/2, screen height()/2, 100, 50, 0xFFFF0000
WAIT KEY
a2Ellipse
Advanced 2D Index
Main Menu
|