DrawPolygonOpt: RenderProps &

pts: Vec2[]

The points that make up the polygon

fill?: boolean

If fill the shape with color (set this to false if you only want an outline).

indices?: number[]

Manual triangulation.

offset?: Vec2

The center point of transformation in relation to the position.

radius?: number | number[]

The radius of each corner.

colors?: Color[]

The color of each vertex.

sincev3000.0

uv?: Vec2[]

The uv of each vertex.

sincev3001.0

tex?: Texture

The texture if uv are supplied.

sincev3001.0

triangulate?: boolean

Triangulate concave polygons.

sincev3001.0

How the polygon should look like.