[][src]Trait color_palette::ColorSpace

trait ColorSpace: Sized {
    const LABEL: &'static str;
    const COMPONENT_RANGES: [RangeInclusive<f64>; 3];

    fn new(a: f32, b: f32, c: f32) -> Self;
fn components(&self) -> [f32; 3];
fn to_string(&self) -> String; }

Associated Constants

const LABEL: &'static str

const COMPONENT_RANGES: [RangeInclusive<f64>; 3]

Loading content...

Required methods

fn new(a: f32, b: f32, c: f32) -> Self

fn components(&self) -> [f32; 3]

fn to_string(&self) -> String

Loading content...

Implementations on Foreign Types

impl ColorSpace for Color[src]

impl ColorSpace for Hsl[src]

impl ColorSpace for Hsv[src]

impl ColorSpace for Hwb[src]

impl ColorSpace for Lab[src]

impl ColorSpace for Lch[src]

Loading content...

Implementors

Loading content...