Trait allegro_color::ColorAddonExtensions[][src]

pub trait ColorAddonExtensions {
    fn from_hsv(hue: f32, saturation: f32, value: f32) -> Color { ... }
fn from_hsl(hue: f32, saturation: f32, lightness: f32) -> Color { ... }
fn from_css_name(name: &str) -> Color { ... }
fn from_cmyk(cyan: f32, magenta: f32, yellow: f32, key: f32) -> Color { ... }
fn from_yuv(y: f32, u: f32, v: f32) -> Color { ... }
fn from_html_hex(html_hex: &str) -> Color { ... }
fn to_hsv(&self) -> (f32, f32, f32) { ... }
fn to_hsl(&self) -> (f32, f32, f32) { ... }
fn to_css_name(&self) -> String { ... }
fn to_cmyk(&self) -> (f32, f32, f32, f32) { ... }
fn to_yuv(&self) -> (f32, f32, f32) { ... } }

Provided methods

fn from_hsv(hue: f32, saturation: f32, value: f32) -> Color[src]

fn from_hsl(hue: f32, saturation: f32, lightness: f32) -> Color[src]

fn from_css_name(name: &str) -> Color[src]

fn from_cmyk(cyan: f32, magenta: f32, yellow: f32, key: f32) -> Color[src]

fn from_yuv(y: f32, u: f32, v: f32) -> Color[src]

fn from_html_hex(html_hex: &str) -> Color[src]

fn to_hsv(&self) -> (f32, f32, f32)[src]

fn to_hsl(&self) -> (f32, f32, f32)[src]

fn to_css_name(&self) -> String[src]

fn to_cmyk(&self) -> (f32, f32, f32, f32)[src]

fn to_yuv(&self) -> (f32, f32, f32)[src]

Loading content...

Implementations on Foreign Types

impl ColorAddonExtensions for Color[src]

Loading content...

Implementors

Loading content...