• Converts an RGB color to an HSV color.

    Example

    rgbToHsv(0.8667, 1, 0.9333) // return { h: 226.78, s: 0.4917, v: 0.4706 }
    

    Parameters

    • rgb: [number, number, number]

      Color components as fractions.

    Returns HSV

Generated using TypeDoc