Function rgbToHsv

  • Convert the given sRGB color to an HSV color. Based on the EasyRGB pseudo-code.

    Parameters

    • color: Rgb

      The sRGB color.

    Returns Hsv

    An HSV color.