Creates a polygonal game object.
pol = gfx.CreatePolygon(
points,
pivotX,
pivotY,
color,
lineWidth,
lineColor,
lineAlpha,
group )
→ game object: Polygon
Methods
The following methods are available on the Polygon object:
alpha → Number: fraction (0..1)
angle → Number: fraction (0..1)
data → Object
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
Update()
visible → Boolean
width → Number