Type
DrawPolygonOpt
: RenderProps & {pts
: Vec2[]The points that make up the polygon
fill
?: booleanIf fill the shape with color (set this to false if you only want an outline).
indices
?: number[]Manual triangulation.
offset
?: Vec2The center point of transformation in relation to the position.
radius
?: number | number[]The radius of each corner.
colors
?: Color[]The color of each vertex.
since
v3000.0
uv
?: Vec2[]The uv of each vertex.
since
v3001.0
tex
?: TextureThe texture if uv are supplied.
since
v3001.0
triangulate
?: booleanTriangulate concave polygons.
since
v3001.0
How the polygon should look like.