[][src]Trait riddle_common::ColorElement

pub trait ColorElement: Copy {
    const ZERO: Self;
    const SATURATED: Self;
}

A type that represents a single channel in a color value.

Associated Constants

const ZERO: Self

const SATURATED: Self

Loading content...

Implementations on Foreign Types

impl ColorElement for u8[src]

A u8 represents a color channel value in the range 0-255

impl ColorElement for f32[src]

An f32 represents a color channel value in the range 0.0 - 1.0

Loading content...

Implementors

Loading content...