Moai SDK
1.5 revision 1 (MoaiEdition)
|
Inherits MOAIGlobalClass< TYPE, SUPER >.
Function List | |
drawBoxOutline | |
drawCircle | |
drawEllipse | |
drawLine | |
drawPoints | |
drawRay | |
drawRect | |
fillCircle | |
fillEllipse | |
fillFan | |
fillRect | |
drawTexture | |
drawText |
Draw a box outline.
function drawBoxOutline ( number x0, number y0, number z0, number x1, number y1, number z1 )
x0 | ( number ) |
y0 | ( number ) |
z0 | ( number ) |
x1 | ( number ) |
y1 | ( number ) |
z1 | ( number ) |
Draw a circle.
function drawCircle ( number x, number y, number r, number steps )
x | ( number ) |
y | ( number ) |
r | ( number ) |
steps | ( number ) |
Draw an ellipse.
function drawEllipse ( number x, number y, number xRad, number yRad, number steps )
x | ( number ) |
y | ( number ) |
xRad | ( number ) |
yRad | ( number ) |
steps | ( number ) |
Draw a line.
function drawLine ( ... )
( | ... ) vertices List of vertices (x, y) or an array of vertices { x0, y0, x1, y1, ... , xn, yn } |
Draw a list of points.
function drawPoints ( ... )
( | ... ) vertices List of vertices (x, y) or an array of vertices { x0, y0, x1, y1, ... , xn, yn } |
Draw a ray.
function drawRay ( number x, number y, number dx, number dy )
x | ( number ) |
y | ( number ) |
dx | ( number ) |
dy | ( number ) |
Draw a rectangle.
function drawRect ( number x0, number y0, number x1, number y1 )
x0 | ( number ) |
y0 | ( number ) |
x1 | ( number ) |
y1 | ( number ) |
Draws a string.
function drawText ( MOAIFont font, number size, string text, number x, number y, number scale, number shadowOffsetX, number shadowOffsetY )
font | ( MOAIFont ) |
size | ( number ) Font size |
text | ( string ) |
x | ( number ) Left position |
y | ( number ) Top position |
scale | ( number ) |
shadowOffsetX | ( number ) |
shadowOffsetY | ( number ) |
Draw a filled rectangle.
function drawTexture ( number x0, number y0, number x1, number y1, MOAITexture texture )
x0 | ( number ) |
y0 | ( number ) |
x1 | ( number ) |
y1 | ( number ) |
texture | ( MOAITexture ) |
Draw a filled circle.
function fillCircle ( number x, number y, number r, number steps )
x | ( number ) |
y | ( number ) |
r | ( number ) |
steps | ( number ) |
Draw a filled ellipse.
function fillEllipse ( number x, number y, number xRad, number yRad, number steps )
x | ( number ) |
y | ( number ) |
xRad | ( number ) |
yRad | ( number ) |
steps | ( number ) |
Draw a filled fan.
function fillFan ( ... )
( | ... ) vertices List of vertices (x, y) or an array of vertices { x0, y0, x1, y1, ... , xn, yn } |
Draw a filled rectangle.
function fillRect ( number x0, number y0, number x1, number y1 )
x0 | ( number ) |
y0 | ( number ) |
x1 | ( number ) |
y1 | ( number ) |