Renderables

Rectangle

A rectangle centred on its position, of a given width and height.

Object type renderable pins

A rectangle is drawn centred on its position, width across and height high, before any rotation. 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
widthnumber
heightnumber

Nodes

Break Rectangle

Node id break/Rectangle

Inputs

NameTypeDefaultNotes
objectRectangletype default

Outputs

NameTypeNotes
positionPoint
rotationnumber
scalenumber
opacitynumber
blendModeBlendMode
fillPaint
strokeStroke
widthnumber
heightnumber

Make Rectangle

Node id make/Rectangle

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" }
widthnumber100
heightnumber100

Outputs

NameTypeNotes
objectRectangle

Set Rectangle

Node id set/Rectangle

Inputs

NameTypeDefaultNotes
objectRectangletype default
positionPoint—
rotationnumber—
scalenumber—
fillPaint—
strokeStroke—
widthnumber—
heightnumber—

Outputs

NameTypeNotes
objectRectangle

Lerp Rectangle

Node id lerp/Rectangle

Inputs

NameTypeDefaultNotes
aRectangletype default
bRectangletype default
tnumber0.5

Outputs

NameTypeNotes
resultRectangle

Notes

  • Default. Make Rectangle gives a 100 × 100 square at the origin.
  • Centred. The position is the rectangle's centre, not a corner: to place its top-left corner at a point, move it by half its size.

Lerp

Lerp Rectangle blends the transform, width, height, fill and stroke. t is clamped to 0, 1.

© 2026 Wirepaint