Function toHsl

Converts encoded sRGB to HSL.

Hsl!T toHsl(T)(
  SRgb!T color
) pure nothrow @nogc @safe
if (is(T == float) || is(T == double));