pub struct Color {
pub hex: String,
pub name: Option<String>,
pub rgb: [u8; 3],
pub hsl: [f64; 3],
}Expand description
Color information.
Fields§
§hex: Stringhex color code
name: Option<String>color name if exists. Based on https://github.com/jonathantneal/color-names
rgb: [u8; 3]RGB
hsl: [f64; 3]HSL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more