color_lizzard 0.1.4

Convert Hex to RGB Or RGB To Hex Color Code
Documentation
  • Coverage
  • 0%
    0 out of 5 items documented0 out of 4 items with examples
  • Size
  • Source code size: 4.33 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.25 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ryangregoire286-star

Package Title

Color Lizzard

This Library Basically Converts 2 Red, Green, Blue Color Values


Install Command

color_lizzard = "=0.1.3"

Add Command

cargo add color_lizzard@=0.1.3


Repo Link

https://crates.io/crates/color_lizzard/0.1.3


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);
    }
}

Current Version is Displayed on Screen