pub trait ColorExt {
// Required method
fn blend_alpha(self, background: Self, alpha: f32) -> Self;
}
Required Methods§
Sourcefn blend_alpha(self, background: Self, alpha: f32) -> Self
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.