Struct RGB
rainbow
pub struct RGB { /* fields omitted */ }
impl RGB
"Red Green Blue".
fn new(r: u8, g: u8, b: u8) -> RGB
fn from_hex_str(hex_str: &str) -> Result<RGB, &'static str>
impl Color for RGB
fn to_f32(&self) -> (f32, f32, f32, f32)
Create a tuple (red, green, blue, alpha). Read more
(red, green, blue, alpha)
fn to_u8(&self) -> (u8, u8, u8, u8)