Skip to main content

hex_with_tint_to_rgb

Function hex_with_tint_to_rgb 

Source
pub fn hex_with_tint_to_rgb(hex: &str, tint: f64) -> String
Expand description

Applies the OOXML §18.8.3 tint algorithm to a hex color string. Positive tint lightens, negative tint darkens. Returns the hex string unchanged if tint is 0.