logo
pub trait HasAlpha<C>: GetAlpha<C> + SetAlpha<C> {
    fn get_color(&self) -> C;
    fn set_color(&mut self, color: C) -> &Self;

    fn split(&self) -> (C, f32)
    where
        Self: Sized
, { ... } }
Expand description

Defines alpha functionality

Required Methods

Retrieve the color component

Set the color component

Provided Methods

Retrieve the color and aplha components

Implementors