Struct buffer_graphics_lib::prelude::IciColor
source · pub struct IciColor {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}
Fields§
§r: u8
§g: u8
§b: u8
§a: u8
Implementations§
Trait Implementations§
source§impl ChangeColors for IciColor
impl ChangeColors for IciColor
source§fn with_saturate(&self, amount: f32) -> Self
fn with_saturate(&self, amount: f32) -> Self
De/saturate color by percentage
Negative amount increases saturation
So
-0.1
is 10% more saturatedsource§fn with_brightness(&self, amount: f32) -> Self
fn with_brightness(&self, amount: f32) -> Self
Change brightness to
amount
So 1.1
is 10% brightersource§fn desaturate(&self) -> Selfwhere
Self: Sized,
fn desaturate(&self) -> Selfwhere Self: Sized,
Decrease saturation by 10%