Creates a polygonal game object.
pol = gfx.CreatePolygon(
points,
pivotX,
pivotY,
color,
lineWidth?,
lineColor?,
lineAlpha?,
group? )
→ game object: Polygon
Properties
The following properties are available on the Polygon object:
alpha → Number: fraction (0..1)
angle → Number: fraction (0..1)
graphic → Object
group → String
height → Number: fraction (0..1)
pivotX → Number: fraction (0..1)
pivotY → Number: fraction (0..1)
scaleX → Number: factor
scaleY → Number: factor
visible → Boolean
width → Number
Methods
The following methods are available on the Polygon object:
Update()