hsl

fun hsl(h: Int, s: Int, l: Int): String

Creates an hsl color string.

The hsl color format specifies a color using hue, saturation, and lightness components. Useful when setting fill/stroke attributes or inline styles.

Return

The hsl color string.

Parameters

h

The hue component (0-360).

s

The saturation component (0-100).

l

The lightness component (0-100).