PolygonComp:

The polygon component.

since

pts: Vec2[]

Points in the polygon.

radius?: number | number[]

The radius of each corner.

colors?: Color[]

The color of each vertex.

uv?: Vec2[]

The uv of each vertex.

since

tex?: Texture

The texture used when uv coordinates are present.

since

kaplay logo

Misc