Struct audio_processor_testing_helpers::charts::HSLColor
source · 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
source§impl<FloatType> ColorMap<HSLColor, FloatType> for DerivedColorMap<HSLColor>
impl<FloatType> ColorMap<HSLColor, FloatType> for DerivedColorMap<HSLColor>
source§fn get_color_normalized(
&self,
h: FloatType,
min: FloatType,
max: FloatType
) -> HSLColor
fn get_color_normalized( &self, h: FloatType, min: FloatType, max: FloatType ) -> HSLColor
A slight abstraction over get_color function where lower and upper bound can be specified.
source§fn get_color(&self, h: FloatType) -> ColorType
fn get_color(&self, h: FloatType) -> ColorType
Takes a scalar value 0.0 <= h <= 1.0 and returns the corresponding color.
Typically color-scales are named according to which color-type they return.
To use upper and lower bounds with ths function see get_color_normalized.
source§impl<FloatType> ColorMap<HSLColor, FloatType> for MandelbrotHSL
impl<FloatType> ColorMap<HSLColor, FloatType> for MandelbrotHSL
source§fn get_color_normalized(
&self,
h: FloatType,
min: FloatType,
max: FloatType
) -> HSLColor
fn get_color_normalized( &self, h: FloatType, min: FloatType, max: FloatType ) -> HSLColor
A slight abstraction over get_color function where lower and upper bound can be specified.
source§fn get_color(&self, h: FloatType) -> ColorType
fn get_color(&self, h: FloatType) -> ColorType
Takes a scalar value 0.0 <= h <= 1.0 and returns the corresponding color.
Typically color-scales are named according to which color-type they return.
To use upper and lower bounds with ths function see get_color_normalized.
source§impl<FloatType> ColorMap<HSLColor, FloatType> for VulcanoHSL
impl<FloatType> ColorMap<HSLColor, FloatType> for VulcanoHSL
source§fn get_color_normalized(
&self,
h: FloatType,
min: FloatType,
max: FloatType
) -> HSLColor
fn get_color_normalized( &self, h: FloatType, min: FloatType, max: FloatType ) -> HSLColor
A slight abstraction over get_color function where lower and upper bound can be specified.
source§fn get_color(&self, h: FloatType) -> ColorType
fn get_color(&self, h: FloatType) -> ColorType
Takes a scalar value 0.0 <= h <= 1.0 and returns the corresponding color.
Typically color-scales are named according to which color-type they return.
To use upper and lower bounds with ths function see get_color_normalized.
source§impl PartialEq for HSLColor
impl PartialEq for HSLColor
impl Copy for HSLColor
impl StructuralPartialEq for HSLColor
Auto Trait Implementations§
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