Renderables

Sector

A pie slice of a circle, such as a semicircle.

Object type renderable pins

A sector is the part of a circle of radius around its position between startAngle and endAngle, closed through the centre like a pie slice: a semicircle is a sector spanning π. 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
radiusnumber
startAnglenumber
endAnglenumber

Nodes

Break Sector

Node id break/Sector

Inputs

NameTypeDefaultNotes
objectSectortype default

Outputs

NameTypeNotes
positionPoint
rotationnumber
scalenumber
opacitynumber
blendModeBlendMode
fillPaint
strokeStroke
radiusnumber
startAnglenumber
endAnglenumber

Make Sector

Node id make/Sector

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" }
radiusnumber100
startAnglenumber0
endAnglenumber2.0943951023931953

Outputs

NameTypeNotes
objectSector

Set Sector

Node id set/Sector

Inputs

NameTypeDefaultNotes
objectSectortype default
positionPoint—
rotationnumber—
scalenumber—
fillPaint—
strokeStroke—
radiusnumber—
startAnglenumber—
endAnglenumber—

Outputs

NameTypeNotes
objectSector

Lerp Sector

Node id lerp/Sector

Inputs

NameTypeDefaultNotes
aSectortype default
bSectortype default
tnumber0.5

Outputs

NameTypeNotes
resultSector

Notes

  • Units. Angles are in radians, 0 pointing right and growing clockwise (the page's y axis points down), like an Arc's. A sector and an arc with the same radius, angles and position line up.
  • Semicircles. startAngle 0 and endAngle π give the lower half, π and 2π the upper half, π/2 and 3π/2 the left half.
  • Span. The arc always goes clockwise from startAngle: an endAngle below startAngle goes the long way round (0 to -π/2 gives three quarters of the circle). Equal angles, or a radius of 0 or less, draw nothing.
  • Whole turns. A span of 2π or more is the whole disk, never more than one turn. Its stroke still draws the radius from the centre to the start, so a sector growing to a full turn changes smoothly. For a disk without that line, use a Circle.
  • Default. Make Sector gives a wedge of radius 100 from 0 to 2π/3 (120°).
  • Path nodes. The outline starts at the centre (t = 0), goes out to the start of the arc, around it, and back: equal steps of t are equal distances along it. Length is 2 × radius plus the arc. Segments doesn't work on sectors.
  • Pie charts. Each slice starts where the previous one ends: chain the endAngle of one into the startAngle of the next.

Lerp

Lerp Sector blends the radius, both angles, the transform, fill and stroke. t is clamped to 0, 1.

  • Arc, the same curve as a line, without the radii or a fill.
  • Circle, for the full circle.
© 2026 Wirepaint