Function hsvToRgb

  • Converts HSV values to RGB values.

    Parameters

    • hsv: HSV

      An object with h, s, and v properties.

    Returns RGB

    An object with r, g, and b properties.

    If the input is not a valid HSV object or if HSV values are out of range.