sht-colour
sht-colour is for conversions involving SHT colour codes. SHT codes are an intuitive human-readable text format for colours. See https://omaitzen.com/sht/spec/ for the specification. Supports conversion to and from RGB/hex and parsing from text.
Example
use ;
let red_sht = "r"..unwrap;
let red_hex = "#F00"..unwrap;
// `RGB` is the standard struct for RGB values, from the `rgb` crate.
let red_rgb = new;
// Converting between SHT and HexRGB (with a precision of 1 digit).
assert_eq!;
assert_eq!;
// Converting between HexRGB and RGB.
assert_eq!;
assert_eq!;