Trait cosmic::prelude::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.

Object Safety§

This trait is not object safe.

Implementors§