Skip to main content

HslaFloat

Type Alias HslaFloat 

Source
pub type HslaFloat = HslaOf<f32>;

Aliased Type§

#[repr(C)]
pub struct HslaFloat { pub h: f32, pub s: f32, pub l: f32, pub a: f32, }

Fields§

§h: f32

Hue. Color coefficient. Ex: 0 = red, 0.25 = green, 0.5 = blue, 0.75 = magenta

§s: f32

Saturation. Grayscale : 0, 1: pure color.

§l: f32

Light. Black & White level. 0 = black, 0.5 = pure color, 1 = white

§a: f32

Alpha