Skip to content

Mojo graphics canvas drawpolys

mojo:mojo.graphics.Canvas.DrawPolys

Method DrawPolys:Void( order:Int,count:Int,vertices:Float[] )#

Draws a sequence of polygons.

Draws a sequence of polygons using the current Color, BlendMode and Matrix.

Parameters
order order The type of polygon: 3=triangles, 4=quads, >4=n-gons.
count count The number of polygons.
vertices vertices Array of x/y vertex coordinate pairs.