Struct lc_render::color::Color [−][src]
pub struct Color { /* fields omitted */ }
Expand description
Color can be used to configure colors of different elements on charts.
Implementations
impl Color
[src]
impl Color
[src]pub fn new_from_hex(hex: &str) -> Self
[src]
pub fn new_from_hex(hex: &str) -> Self
[src]Create color from hex string.
pub fn new_from_rgb(r: u8, g: u8, b: u8) -> Self
[src]
pub fn new_from_rgb(r: u8, g: u8, b: u8) -> Self
[src]Create color from (r, g, b) values.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more