color_lizzard 0.1.3

Convert Hex to RGB Or RGB To Hex Color Code
Documentation
mod structs;

pub trait Color {
    fn get_rgb(&mut self, r: i32, g: i32, b: i32);
    fn get_hex(&mut self, r: i32, g: i32, b: i32);
}

pub struct ColorLizzard {
    pub(crate) _0: String,
    pub(crate) _1: String,
}


impl Color for ColorLizzard {
    fn get_rgb(&mut self, r: i32, g: i32, b: i32) {
        self._0 = format!("{} {} {}", r, g, b);
    }

    fn get_hex(&mut self, r: i32, g: i32, b: i32) {
        self._1 = format!("{:x} {:x} {:x}", r, g, b);
    }
}