xod/color@0.37.3

License: AGPL-3.0

Library to work with color
NodeDescription
color-hsl
Constructs a color value from hue, saturation, and lightness values (HSL model)
color-rgb
Constructs a color value from red, green, and blue components. Each component should be in the range [0, 1]. Values out of this range are truncated to 0 or 1
color-rgb-bytes
Constructs a color value from red, green, and blue components expressed as byte values. Use decimal (0d to 255d) or hexadecimal (00h to FFh) byte literals. For example, if a graphical editor shows a blue as “#287ec9” or “rgb(40, 126, 201)” use the following literals for R/G/B: 28h/7Eh/C9h or 40d/126d/201d
format-color
Formats a color as a 6-digit hexadecimal value (ex.: "FF3300")
pulse-on-change(color)No description
to-hsl
Destructs a color value to hue, saturation, and lightness values. See color-hsl docs for more details
to-rgb
Destructs a color value into red, green, and blue components. Each component is in range [0, 1]
to-rgb-bytes
Destructs a color value into red, green, and blue components encoded as byte values