• Converts a hexadecimal RGB color to an HSV color.

    Example

    hexToHsv(0.2392, 0.2902, 0.4706) // return { h: 226.78, s: 0.4917, v: 0.4706 }
    

    Parameters

    • rgb: [number, number, number]

      Color components as fractions.

    Returns HSV

Generated using TypeDoc