Style
Color
A color, by its red, green, blue and alpha channels.
Object type style pins
A Color has red r, green g and blue b channels from 0 to 255, and an
alpha a from 0 (transparent) to 1 (opaque).
Hierarchy
- Parents
Paint- Subtypes
- None
Properties
| Name | Type | Notes |
|---|---|---|
| r | number | |
| g | number | |
| b | number | |
| a | number |
Nodes
Break Color
Node id break/Color
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| object | Color | type default |
Outputs
| Name | Type | Notes |
|---|---|---|
| r | number | |
| g | number | |
| b | number | |
| a | number |
Make Color
Node id make/Color
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| r | number | 0 | |
| g | number | 0 | |
| b | number | 0 | |
| a | number | 1 |
Outputs
| Name | Type | Notes |
|---|---|---|
| object | Color |
Set Color
Node id set/Color
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| object | Color | type default | |
| r | number | — | |
| g | number | — | |
| b | number | — | |
| a | number | — |
Outputs
| Name | Type | Notes |
|---|---|---|
| object | Color |
Lerp Color
Node id lerp/Color
Inputs
Outputs
| Name | Type | Notes |
|---|---|---|
| result | Color |
Notes
- Default. Make Color gives opaque black: (0, 0, 0) with alpha 1.
- Other notations. Color From HSL makes a
color from hue, saturation and lightness,
Color From Hex creates a color from a hex
code, and Color To Hex writes it as
#rrggbb. - Used by every Stroke, and as a Shape's fill: Color is a Paint, like the gradients. A fill's constant is always a Color.
Lerp
Lerp Color blends each channel, alpha included. Blended channels can have
decimals. t is clamped to 0, 1.