Content:
- Methods

Creates a polygonal game object.

pol = gfx.CreatePolygon( points, pivotX, pivotY, color, lineWidth, lineColor, lineAlpha, group ) → game object: Polygon

Example click to expand contents 

Methods

The following methods are available on the Polygon object:

alphaNumber: fraction (0..1)
angleNumber: fraction (0..1)
Contains( x, y ) → Boolean
dataObject
graphicObject
groupString
heightNumber: fraction (0..1)
pivotXNumber: fraction (0..1)
pivotYNumber: fraction (0..1)
scaleXNumber: factor
scaleYNumber: factor
Update()
visibleBoolean
widthNumber