pub trait SetAlpha<C> {
fn set_alpha(&mut self, alpha: f32) -> &Self;
fn set_opacity(&mut self, opacity: f32) -> &Self;
fn set_transparency(&mut self, transparency: f32) -> &Self;
}
Expand description
Defines alpha setters functionality
Required Methods
fn set_opacity(&mut self, opacity: f32) -> &Self
fn set_opacity(&mut self, opacity: f32) -> &Self
Set the alpha component as opacity
fn set_transparency(&mut self, transparency: f32) -> &Self
fn set_transparency(&mut self, transparency: f32) -> &Self
Set the alpha component as transparency