pub type Scalar = f64;
Expand description
Scalar type
Trait Implementations§
source§impl Color for Scalar
impl Color for Scalar
source§fn blend_over(self, other: Self) -> Self
fn blend_over(self, other: Self) -> Self
Blend other color on top of this color
source§fn with_alpha(self, alpha: Scalar) -> Self
fn with_alpha(self, alpha: Scalar) -> Self
Override alpha component of the color
source§fn lerp(self, other: Self, t: f32) -> Self
fn lerp(self, other: Self, t: f32) -> Self
Linear interpolation between self and other colors.
source§fn best_contrast(self, c0: Self, c1: Self) -> Self
fn best_contrast(self, c0: Self, c1: Self) -> Self
Pick color that produces the best contrast with self