[][src]Trait batbox::ColorComponent

pub trait ColorComponent: Copy {
    const ZERO: Self;
    const HALF: Self;
    const MAX: Self;

    fn as_f32(self) -> f32;
fn from_f32(value: f32) -> Self; fn convert<U: ColorComponent>(self) -> U { ... } }

Associated Constants

const ZERO: Self

const HALF: Self

const MAX: Self

Loading content...

Required methods

fn as_f32(self) -> f32

fn from_f32(value: f32) -> Self

Loading content...

Provided methods

fn convert<U: ColorComponent>(self) -> U

Loading content...

Implementations on Foreign Types

impl ColorComponent for f32[src]

impl ColorComponent for f64[src]

impl ColorComponent for u8[src]

Loading content...

Implementors

Loading content...