Renderables

Polygon

A closed shape through a list of vertices.

Object type renderable pins

A polygon joins its vertices in order and closes the outline back to the first one. The vertices are relative to the polygon's position. Like every Shape, it has a fill and a stroke.

Hierarchy

Parents
Shape → Renderable
Subtypes
None

Properties

NameTypeNotes
positionPoint from Renderable
rotationnumber from Renderable
scalenumber from Renderable
opacitynumberread-only from Renderable
blendModeBlendModeread-only from Renderable
fillPaint from Shape
strokeStroke from Shape
verticesArray<Point>
worldVerticesArray<Point>read-only
segmentsArray<Segment>read-only

Nodes

Break Polygon

Node id break/Polygon

Inputs

NameTypeDefaultNotes
objectPolygontype default

Outputs

NameTypeNotes
positionPoint
rotationnumber
scalenumber
opacitynumber
blendModeBlendMode
fillPaint
strokeStroke
verticesArray<Point>
worldVerticesArray<Point>
segmentsArray<Segment>

Make Polygon

Node id make/Polygon

Inputs

NameTypeDefaultNotes
positionPoint{ x: 0, y: 0 }
rotationnumber0
scalenumber1
fillPaint{ r: 128, g: 128, b: 128, a: 1 }
strokeStroke{ width: 1, color: { r: 0, g: 0, b: 0, a: 1 }, dashStyle: "SOLID", caps: "round" }
verticesArray<Point>[{ x: 0, y: 0 }, { x: 100, y: 0 }, { x: 120, y: 100 }, { x: 0, y: 70 }]

Outputs

NameTypeNotes
objectPolygon

Set Polygon

Node id set/Polygon

Inputs

NameTypeDefaultNotes
objectPolygontype default
positionPoint—
rotationnumber—
scalenumber—
fillPaint—
strokeStroke—
verticesArray<Point>—

Outputs

NameTypeNotes
objectPolygon

Lerp Polygon

Node id lerp/Polygon

Inputs

NameTypeDefaultNotes
aPolygontype default
bPolygontype default
tnumber0.5

Outputs

NameTypeNotes
resultPolygon

Notes

  • Default. Make Polygon gives a four-sided shape with vertices (0, 0), (100, 0), (120, 100) and (0, 70).
  • At least three vertices. With fewer, the polygon has no area to fill.
  • From other nodes. vertices is an Array<Point>: it can come from Make Array, a lattice or Sample, for instance.
  • Local and world vertices. Break Polygon's vertices are the same relative points Make Polygon takes, so a polygon broken and made again from its position, rotation, scale and vertices is unchanged. worldVertices (read-only) are the points as drawn on the page, with the position, rotation and scale applied. segments (read-only) are the sides as drawn, too.

Lerp

Lerp Polygon blends each vertex with the vertex at the same index, plus the transform, fill and stroke. Both polygons must have the same number of vertices, else it's a node error. t is clamped to 0, 1.

© 2026 Wirepaint