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) { ... } }
Defines alpha functionality
Retrieve the color component
Set the color component
Retrieve the color and aplha components