Skip to content

Mojo graphics canvas drawpoly

mojo:mojo.graphics.Canvas.DrawPoly

Method DrawPoly:Void( vertices:Float[] )#

Draws a polygon.

Draws a polygon using the current Color, BlendMode and Matrix.

The vertices array must be at least 2 elements long

Parameters
vertices vertices Array of x/y vertex coordinate pairs.