pub fn to_hex(&self) -> String {
        let r = (self.r * 255.0) as u32;
        let g = (self.g * 255.0) as u32;
        let b = (self.b * 255.0) as u32;
        let value = r << 16 | g << 8 | b;
        format!("#{:06x}", value)
    }
/// Converts this color to a hex string like "#ffa13b". Note that this function currently
/// ignores the alpha channel.
Converts this color to a hex string like "#ffa13b". Note that this function currently
ignores the alpha channel.
Converts this color to a hex string like " #ffa13b " . Note that this function currently ignores the alpha channel .
pub fn to_hex(&self) -> String {
        let r = (self.r * 255.0) as u32;
        let g = (self.g * 255.0) as u32;
        let b = (self.b * 255.0) as u32;
        let value = r << 16 | g << 8 | b;
        format!("#{:06x}", value)
    }
pub fn to_hex ( & self ) -> String { let r = ( self . r * 255.0 ) as u32 ; let g = ( self . g * 255.0 ) as u32 ; let b = ( self . b * 255.0 ) as u32 ; let value = r << 16 | g << 8 | b ; format ! ( " " value ) }
Converts this color to a hex string like "#ffa13b".
Converts this color to a hex string like " #ffa13b " .
&self
&self