hsl

The hsl function is the same as in CSS color specifications.

Expected values ranges from 0 to 255.

pure nothrow @nogc @safe
hsl
(,
float sat
,
float light
,
float alpha = 1.0f
)

Parameters

hueDegrees float

Hue value (0 = red, 60 = yellow, 240 = blue). = Can wrap around.

sat float

Saturation value in 0 to 1.0f.

light float

Light value in 0 to 1.0f.

alpha float

Alpha value in 0 to 1.0f (opacity).

Meta