Struct color_gradient::RgbGradient
source · pub struct RgbGradient { /* private fields */ }Implementations§
source§impl RgbGradient
impl RgbGradient
pub fn rescale(&mut self, min: f32, max: f32)
pub fn insert_color<RGB>(&mut self, key: f32, color: RGB)where RGB: Into<RGBA32>,
pub fn remove_color(&mut self, key: f32)
pub fn insert_red(&mut self, key: f32, value: f32)
pub fn remove_red(&mut self, key: f32)
pub fn insert_green(&mut self, key: f32, value: f32)
pub fn remove_green(&mut self, key: f32)
pub fn insert_blue(&mut self, key: f32, value: f32)
pub fn remove_blue(&mut self, key: f32)
pub fn insert_alpha(&mut self, key: f32, value: f32)
pub fn remove_alpha(&mut self, key: f32)
pub fn clear_alpha(&mut self)
Auto Trait Implementations§
impl RefUnwindSafe for RgbGradient
impl Send for RgbGradient
impl Sync for RgbGradient
impl Unpin for RgbGradient
impl UnwindSafe for RgbGradient
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