Content:
- Properties
- Methods

Creates a polygonal game object.

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

Example - 2 click to expand contents 

Properties

The following properties are available on the Polygon object:

alphaNumber: fraction (0..1)
angleNumber: fraction (0..1)
dataObject: { key, value }
graphicObject
groupString
heightNumber: fraction (0..1)
pivotXNumber: fraction (0..1)
pivotYNumber: fraction (0..1)
scaleXNumber: factor
scaleYNumber: factor
visibleBoolean
widthNumber

Methods

The following methods are available on the Polygon object:

Contains( x, y ) → Boolean
Update()