MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / hsl

Function hsl

packages/frontend/src/ui/color.ts:7–13  ·  view source on GitHub ↗
(hue: number, saturation: number, lightness: number)

Source from the content-addressed store, hash-verified

5}
6
7export 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
15export function hsl_to_string(c: HSL): string {
16 return `hsl(${c[0]} ${c[1]}% ${c[2]}%)`

Callers

nothing calls this directly

Calls 1

hsl_zeroFunction · 0.85

Tested by

no test coverage detected