Function toHsv

Converts encoded sRGB to HSV.

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