Pin types and colors

What a pin's type says, which wires fit, and how colors and handle shapes show it.

Every pin has a type: the kind of value it gives or takes, such as number, Point or Circle. The type decides which wires fit, and the editor shows it twice: as text next to the pin, and as the pin's color and shape.

Which wires fit

A wire fits when the output's type is the input's type, or a subtype of it:

  • a Circle output connects to a Circle, Shape or Renderable input, since a circle is a shape and a shape is a renderable; each type's page shows its parents;
  • arrays follow their elements: an Array<Circle> connects to an Array<Shape> input;
  • the Output and Group nodes' objects input takes single objects or arrays of them;
  • there are no conversions: Point and Vec2 don't connect to each other, nor does a number to a string input;
  • a choice (enum) only connects to the same choice.

While you drag a wire, the pins it fits are ringed and the others dimmed.

Colors

A pin's color says which family its type belongs to. A type takes the color of its nearest parent with one, so all shapes and lines are green, and so are types added later.

ColorFamilyTypes
Numbersnumber
Booleansboolean
Textstring
Choices (enums)StrokeDash, StrokeCaps, StrokeJoin, EasingCurve, EasingMode, StepPosition, FontFallback, TextAlign, TextAnchor, BlendMode, WallpaperGroup, MetaballFalloff
Points and vectorsVec2, Point, PointScalar, PointVector
Colors and strokesPaint, Color, ColorStop, LinearGradient, RadialGradient, Stroke
Bounding boxesBoundingBox
Shapes, lines and groupsRenderable, Shape, Line, Circle, Ellipse, Rectangle, Polygon, RegularPolygon, Text, ClosedSpline, Sector, Segment, Polyline, Arc, Bezier, Spline, Group, SvgImage
FunctionsFunction(…)
Generic, not set yetT
OtherTypes without a family of their own

Wires take the color of the output they come from.

Shapes

A pin's shape says what kind of value it holds:

HandlePinExample
circleA single valuePoint
squareAn array (in its elements' color)Array<Point>
diamondA functionFunction(T, number) -> (U)
square, hollowA generic type not set yetArray<T>

See also

© 2026 Wirepaint