[][src]Trait pix::Channel

pub trait Channel: Copy + Default + Mul<Output = Self> + Div<Output = Self> + From<u8> + Into<u8> + Gamma {
    fn min(self, rhs: Self) -> Self;
fn max(self, rhs: Self) -> Self;
fn full() -> Self;
fn lerp_alpha(self, dest: Self, alpha: Self) -> Self; }

Color channel trait

Required methods

fn min(self, rhs: Self) -> Self

Get min of two channel values

fn max(self, rhs: Self) -> Self

Get max of two channel values

fn full() -> Self

Get channel value with full intensity

fn lerp_alpha(self, dest: Self, alpha: Self) -> Self

Linear interpolation with alpha

Loading content...

Implementors

impl Channel for Cu16[src]

fn min(self, rhs: Self) -> Self[src]

Get min of two channel values

fn max(self, rhs: Self) -> Self[src]

Get max of two channel values

fn full() -> Self[src]

Get channel value with full intensity

fn lerp_alpha(self, dest: Self, alpha: Self) -> Self[src]

Linear interpolation

impl Channel for Cu8[src]

fn min(self, rhs: Self) -> Self[src]

Get min of two channel values

fn max(self, rhs: Self) -> Self[src]

Get max of two channel values

fn full() -> Self[src]

Get channel value with full intensity

fn lerp_alpha(self, dest: Self, alpha: Self) -> Self[src]

Linear interpolation

Loading content...