[][src]Trait colors_transform::AlphaColor

pub trait AlphaColor {
    fn get_alpha(&self) -> f32;
fn set_alpha(&self, a: f32) -> Self;
fn opacify(&self, o: f32) -> Self; }

Some methods for working with alpha channel for Rgba & Hsla

Required methods

fn get_alpha(&self) -> f32

fn set_alpha(&self, a: f32) -> Self

fn opacify(&self, o: f32) -> Self

Loading content...

Implementors

impl AlphaColor for Hsl[src]

impl AlphaColor for Rgb[src]

Loading content...