pub struct HSLColor(pub f64, pub f64, pub f64);
Expand description
The color described by HSL color space
Tuple Fields§
§0: f64
§1: f64
§2: f64
Trait Implementations§
Source§impl Color for HSLColor
impl Color for HSLColor
Source§fn to_backend_color(&self) -> BackendColor
fn to_backend_color(&self) -> BackendColor
Normalize this color representation to the backend color
Source§fn to_rgba(&self) -> RGBAColor
fn to_rgba(&self) -> RGBAColor
Convert the color into the RGBA color which is internally used by Plotters
Source§fn filled(&self) -> ShapeStylewhere
Self: Sized,
fn filled(&self) -> ShapeStylewhere
Self: Sized,
Make a filled style form the color
Source§fn stroke_width(&self, width: u32) -> ShapeStylewhere
Self: Sized,
fn stroke_width(&self, width: u32) -> ShapeStylewhere
Self: Sized,
Make a shape style with stroke width from a color
Auto Trait Implementations§
impl Freeze for HSLColor
impl RefUnwindSafe for HSLColor
impl Send for HSLColor
impl Sync for HSLColor
impl Unpin for HSLColor
impl UnwindSafe for HSLColor
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