gabbapeople/color

Library to work with color in XOD
NodeDescription
color-hsl
Constructs a color value from hue, saturation, and lightness values (HSL model)
color-purifyNo description
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")
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
To use the nodes in your project you should have the  gabbapeople/color  library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.