pub struct RgbColor {
pub red: u8,
pub green: u8,
pub blue: u8,
}Expand description
Rgb color representation with u8 components
Fields§
§red: u8Red component
green: u8Green component
blue: u8Blue component
Implementations§
Trait Implementations§
impl ColorSpace for RgbColor
impl ColorTransition for RgbColor
impl Copy for RgbColor
impl Eq for RgbColor
impl NonRadialSpace for RgbColor
impl NonSaturationSpace for RgbColor
impl StructuralPartialEq for RgbColor
Auto Trait Implementations§
impl Freeze for RgbColor
impl RefUnwindSafe for RgbColor
impl Send for RgbColor
impl Sync for RgbColor
impl Unpin for RgbColor
impl UnwindSafe for RgbColor
Blanket Implementations§
Source§impl<C> AdjustHue for C
impl<C> AdjustHue for C
Source§fn adjust_hue(self, delta: f32) -> C
fn adjust_hue(self, delta: f32) -> C
Adjust hue component of color with delta
Source§fn complement(self) -> Self
fn complement(self) -> Self
Rotate hue component with 180 degrees
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Fr, To> FromColor<Fr> for To
impl<Fr, To> FromColor<Fr> for To
Source§fn from_color(from_color: Fr) -> To
fn from_color(from_color: Fr) -> To
Convert from color
Source§impl<C> GetHue for Cwhere
C: NonRadialSpace,
impl<C> GetHue for Cwhere
C: NonRadialSpace,
Source§impl<C> GetRadialSaturation for C
impl<C> GetRadialSaturation for C
Source§fn get_hsl_saturation(self) -> f32
fn get_hsl_saturation(self) -> f32
Retrieve hsl saturation
Source§fn get_hsv_saturation(self) -> f32
fn get_hsv_saturation(self) -> f32
Set hsv saturation
Source§impl<Fr, To> IntoColor<To> for Frwhere
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Frwhere
To: FromColor<Fr>,
Source§fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
Source§impl<C> SetHue for Cwhere
C: NonRadialSpace,
impl<C> SetHue for Cwhere
C: NonRadialSpace,
Source§impl<C> SetRadialSaturation for C
impl<C> SetRadialSaturation for C
Source§fn set_hsl_saturation(&mut self, saturation: f32) -> C
fn set_hsl_saturation(&mut self, saturation: f32) -> C
Retrieve hsl saturation
Source§fn set_hsv_saturation(&mut self, saturation: f32) -> C
fn set_hsv_saturation(&mut self, saturation: f32) -> C
Set hsv saturation
Source§impl<C> ToHexString for C
impl<C> ToHexString for C
Source§fn to_hex_string(&self) -> String
fn to_hex_string(&self) -> String
Represents a color as a hexadecimal string