Color
| Node | Description | Inputs | Outputs |
|---|---|---|---|
| complement | Returns the complementary color. | hex Text | hex Text |
| darken | Darkens a color by a given amount. | hex Text, amount Number | hex Text |
| from_hex | Parses a hex color string into an RGB object. | hex Text | color Json |
| from_hsl | Converts HSL values to an RGB object. | h Number, s Number, l Number | color Json |
| lerp | Interpolates between two colors. | a Text, b Text, t Number | hex Text |
| lighten | Lightens a color by a given amount. | hex Text, amount Number | hex Text |
| split_hsl | Splits a hex color into H, S, L components. | color Text | h Number, s Number, l Number |
| split_rgb | Splits a hex color into R, G, B channels. | color Text | r Number, g Number, b Number |
| to_hex | Converts RGB values to a hex color string. | r Number, g Number, b Number | hex Text |
complement
Returns the complementary color.
Inputs:
hex(Text) — hex color to complement
Output: hex (Text) — inverted hex color
darken
Darkens a color by a given amount.
Inputs:
hex(Text) — hex color to darkenamount(Number) — darken percentage (0-100)
Output: hex (Text) — darkened hex color
from_hex
Parses a hex color string into an RGB object.
Inputs:
hex(Text) — hex color (e.g. #ff0000)
Output: color (Json) — {r, g, b, hex} object
Example: hex = #ff0000 → {"b":0,"g":0,"hex":"#ff0000","r":255}
from_hsl
Converts HSL values to an RGB object.
Inputs:
h(Number) — hue (0-360)s(Number) — saturation (0-100)l(Number) — lightness (0-100)
Output: color (Json) — {r, g, b} object
lerp
Interpolates between two colors.
Inputs:
a(Text) — start color (hex)b(Text) — end color (hex)t(Number) — blend factor (0 = a, 1 = b)
Output: hex (Text) — interpolated hex color
Example: a = #000000, b = #ffffff, t = 0.5 → #808080
lighten
Lightens a color by a given amount.
Inputs:
hex(Text) — hex color to lightenamount(Number) — lighten percentage (0-100)
Output: hex (Text) — lightened hex color
split_hsl
Splits a hex color into H, S, L components.
Inputs:
color(Text) — hex color string
Outputs:
h(Number) — hue (0-360)s(Number) — saturation (0-100)l(Number) — lightness (0-100)
Example: color = #ff0000 → 0
split_rgb
Splits a hex color into R, G, B channels.
Inputs:
color(Text) — hex color string
Outputs:
r(Number) — red channel (0-255)g(Number) — green channel (0-255)b(Number) — blue channel (0-255)
Example: color = #ff0000 → 255
to_hex
Converts RGB values to a hex color string.
Inputs:
r(Number) — red channel (0-255)g(Number) — green channel (0-255)b(Number) — blue channel (0-255)
Output: hex (Text) — hex color string (e.g. #ff0000)