Trait allegro_color::ColorAddonExtensions
source · pub trait ColorAddonExtensions {
// Provided methods
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
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)
Object Safety§
This trait is not object safe.