Expand description
Color generation.
This is similar to Consistent Color Generation defined in XEP-0392, but uses OKLCh colorspace instead of HSLuv to ensure that colors have the same lightness.
Functions§
- color_
int_ to_ hex_ string - Returns color as a “#RRGGBB”
String
where R, G, B are hex digits. - rgb_
to_ 🔒u32 - Converts RGB tuple to a 24-bit number.
- str_
to_ 🔒angle - Converts an identifier to Hue angle.
- str_
to_ color - Converts an identifier to RGB color.