cosmic::prelude

Trait ColorExt

Source
pub trait ColorExt {
    // Required method
    fn blend_alpha(self, background: Self, alpha: f32) -> Self;
}

Required Methods§

Source

fn blend_alpha(self, background: Self, alpha: f32) -> Self

Combines color with background to create appearance of transparency.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§