pub struct Hsl { /* private fields */ }Implementations§
Trait Implementations§
Source§impl AlphaColor for Hsl
impl AlphaColor for Hsl
Source§impl Color for Hsl
impl Color for Hsl
type TupleA = (f32, f32, f32, f32)
Source§fn get_saturation(&self) -> f32
fn get_saturation(&self) -> f32
Returns saturation value of color (
0.0..100.00)Source§fn get_lightness(&self) -> f32
fn get_lightness(&self) -> f32
Returns lightness value of color (
0.0..100.00)Source§fn set_saturation(&self, val: f32) -> Hsl
fn set_saturation(&self, val: f32) -> Hsl
Sets saturation value of color (
0.0..100.00). Returns ColorSource§fn set_lightness(&self, val: f32) -> Hsl
fn set_lightness(&self, val: f32) -> Hsl
Sets lightness value of color (
0.0..100.00). Returns Colorfn to_rgb(&self) -> Rgb
fn to_hsl(&self) -> Hsl
Source§fn to_css_string(&self) -> String
fn to_css_string(&self) -> String
Returns css string Read more
Source§fn from_tuple(t: &ColorTuple) -> Hsl
fn from_tuple(t: &ColorTuple) -> Hsl
Creates a color from tuple. Read more
fn from_tuple_with_alpha(t: &ColorTupleA) -> Hsl
Source§fn as_tuple(&self) -> ColorTuple
fn as_tuple(&self) -> ColorTuple
Returns tuple representation of color Read more
fn lighten(&self, val: f32) -> Hsl
fn saturate(&self, val: f32) -> Hsl
fn adjust_hue(&self, hue: f32) -> Hsl
fn adjust_color(&self, name: RgbUnit, val: f32) -> Hsl
fn invert(&self) -> Hsl
impl Copy for Hsl
impl StructuralPartialEq for Hsl
Auto Trait Implementations§
impl Freeze for Hsl
impl RefUnwindSafe for Hsl
impl Send for Hsl
impl Sync for Hsl
impl Unpin for Hsl
impl UnwindSafe for Hsl
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