[][src]Trait geng_core::prelude::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>(self) -> U
    where
        U: ColorComponent
, { ... } }

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>(self) -> U where
    U: ColorComponent

Loading content...

Implementations on Foreign Types

impl ColorComponent for f32[src]

impl ColorComponent for u8[src]

impl ColorComponent for f64[src]

Loading content...

Implementors

Loading content...