Game Development Reference
In-Depth Information
Drawing Filled Ellipses
Similarly, you can use the function fillEllipse to draw a filled ellipse. The syntax is the same as a
regular ellipse, and the pen color determines the fill color.
function onDraw ( index, xOff, yOff, xFlip, yFlip )
MOAIDraw.drawEllipse(0, 0, 100, 100)
end
Drawing Polygons
drawLines function. The
MOAIDraw.drawLines(-50,50,50,50,50,-50,-50,-50,-50,50)
drawPoints can be used to plot points at the given list of vertices. The following code
MOAIDraw.drawPoints function, the results of which are shown in
10-5 .
Figure 10-5. Points set in the quadrants, demonstrating the coordinate system in Moai
 
Search WWH ::




Custom Search