pub fn color_to_hex(c: Color, with_alpha: bool) -> String
Format a Color as #RRGGBB (or #RRGGBBAA when with_alpha is true and the colour is not fully opaque). Bytes are clamped to 0..=255.
Color
#RRGGBB
#RRGGBBAA
with_alpha
0..=255