Trait dx::prelude::HasSaturation
source · [−]pub trait HasSaturation: Clone + Copy {
fn get_saturation(self) -> f32;
fn set_saturation(&mut self, saturation: f32) -> Self;
}
Expand description
Defines the color saturation functionality
Required Methods
fn get_saturation(self) -> f32
fn get_saturation(self) -> f32
Retrieve saturation
fn set_saturation(&mut self, saturation: f32) -> Self
fn set_saturation(&mut self, saturation: f32) -> Self
Set the saturation