ltk

Function color_to_hex

Source
pub fn color_to_hex(c: Color, with_alpha: bool) -> String
Expand description

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.