hsla

fun hsla(h: Int, s: Int, l: Int, a: Float): String

Creates an hsla color string.

The hsla color format specifies a color using hue, saturation, lightness components, and an alpha (opacity) value. Useful for fill/stroke or style values.

Return

The hsla color string.

Parameters

h

The hue component (0-360).

s

The saturation component (0-100).

l

The lightness component (0-100).

a

The alpha component (0.0-1.0).