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

    Function oklabToRGB

    • Converts a color from OKLab to RGB color space.

      This function first converts the OKLab color to XYZ, then from XYZ to RGB. Gamut mapping is performed during the conversion to ensure the resulting color is within the valid RGB gamut.

      Parameters

      • color: OKLabColor

        The OKLab color to convert

      • OptionalperformGamutMapping: boolean = true

        Whether to perform gamut mapping

      Returns RGBColor

      The color in RGB space