Style
Paint
What a shape is filled with, a Color or a gradient.
Abstract type style pins
Paint is the abstract type of fills and stroke colors: a
Color, a LinearGradient
or a RadialGradient. Every
Shape's fill and every
Stroke's color is a Paint, so any of the three can
be connected to them.
Hierarchy
- Parents
- None
- Subtypes
Color,LinearGradient,RadialGradient
Properties
None.
Nodes
None.
Notes
- Constants are colors. An unconnected
fillor strokecoloris edited in the inspector as Color fields (r,g,b,a), like before gradients existed. For a gradient, connect a Make LinearGradient or Make RadialGradient node. - No nodes of its own. Paint is abstract and has no properties, so it has no Break, Make, Set or Lerp node.
- Lerping. A shape's Lerp node and Lerp Stroke blend two Colors, or
two gradients of the same kind with as many stops. Other pairs can't be
blended: the result is
a's belowt= 0.5 andb's from 0.5 on.
Related types
- ColorStop, the stops of a gradient.
- Stroke, whose color is a Paint.
- A glowing ball in a gradient frame, a worked example.