logo
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

Set the alpha component

Set the alpha component as opacity

Set the alpha component as transparency

Implementors