1///|
2pub fn struct HSL {
hue: UInt
saturation: UInt
lightness: UInt
}
HSL color
HSL::(self : HSL) -> Color
to_color(HSL
self : struct HSL {
hue: UInt
saturation: UInt
lightness: UInt
}
HSL color
HSL) -> type Color UInt
RGBA color
Color {
3 type Color UInt
RGBA color
Color::(hue : UInt, saturation : UInt, lightness : UInt) -> Color
hsl(HSL
self.UInt
hue, HSL
self.UInt
saturation, HSL
self.UInt
lightness)
4}
5
6///|
7pub fn struct HSL {
hue: UInt
saturation: UInt
lightness: UInt
}
HSL color
HSL::(hue : UInt, saturation : UInt, lightness : UInt) -> HSL
new(UInt
hue : UInt
UInt, UInt
saturation : UInt
UInt, UInt
lightness : UInt
UInt) -> struct HSL {
hue: UInt
saturation: UInt
lightness: UInt
}
HSL color
HSL {
8 (hue : UInt, saturation : UInt, lightness : UInt, alpha : UInt) -> Unit
validate_hsla(UInt
hue, UInt
saturation, UInt
lightness, 100)
9 { UInt
hue, UInt
saturation, UInt
lightness }
10}
11
12///|
13pub fn struct HSL {
hue: UInt
saturation: UInt
lightness: UInt
}
HSL color
HSL::(self : HSL) -> HSLA
to_hsla(HSL
self : struct HSL {
hue: UInt
saturation: UInt
lightness: UInt
}
HSL color
HSL) -> struct HSLA {
hue: UInt
saturation: UInt
lightness: UInt
alpha: UInt
}
HSLA color
HSLA {
14 {
15 UInt
hue: HSL
self.UInt
hue,
16 UInt
saturation: HSL
self.UInt
saturation,
17 UInt
lightness: HSL
self.UInt
lightness,
18 UInt
alpha: 100,
19 }
20}
21