Trait colorsys::ColorAlpha
source · pub trait ColorAlpha {
fn alpha(&self) -> f64;
fn get_alpha(&self) -> f64;
fn set_alpha(&mut self, val: f64);
fn opacify(&mut self, val: f64);
}
Expand description
Methods to work with alpha channel in color.
Required Methods§
sourcefn get_alpha(&self) -> f64
fn get_alpha(&self) -> f64
👎Deprecated since 0.7.0: Please use
alpha
insteadReturns alpha channel. If it not set will returns 1.0