@dragonspark/chroma-kit
    Preparing search index...

    Function xyzToHSV

    • Converts a color from CIE XYZ to HSV color space.

      This function first converts the XYZ color to RGB, then from RGB to HSV. The HSV color space is a cylindrical representation of RGB, using hue, saturation, and value components. Gamut mapping is performed during the conversion to ensure the resulting color is within the valid RGB gamut.

      Parameters

      • color: XYZColor

        The XYZ color to convert

      • OptionalperformGamutMapping: boolean = true

        Whether to perform gamut mapping

      Returns HSVColor

      The color in HSV space