(hue: number, saturation: number, lightness: number)
| 5 | } |
| 6 | |
| 7 | export function hsl(hue: number, saturation: number, lightness: number): HSL { |
| 8 | let c = hsl_zero() |
| 9 | c[0] = hue |
| 10 | c[1] = saturation |
| 11 | c[2] = lightness |
| 12 | return c |
| 13 | } |
| 14 | |
| 15 | export function hsl_to_string(c: HSL): string { |
| 16 | return `hsl(${c[0]} ${c[1]}% ${c[2]}%)` |
nothing calls this directly
no test coverage detected