[][src]Trait duku::Mix

pub trait Mix {
    pub fn mix(from: Self, to: Self, p: f32) -> Self;
}

Trait to get color values in-between two.

Required methods

pub fn mix(from: Self, to: Self, p: f32) -> Self[src]

Calculate color between from and to at point p in range 0 to 1

Loading content...

Implementors

impl Mix for Hsb[src]

impl Mix for Rgb[src]

impl Mix for Rgbf[src]

Loading content...