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

    Function oklab

    • Creates a new OKLab color object with the specified components.

      This is the primary factory function for creating OKLab colors in the library. The created object includes methods for conversion to other color spaces and string representations.

      Parameters

      • l: number

        The lightness component (0-1)

      • a: number

        The green-red component (negative values are green, positive values are red)

      • b: number

        The blue-yellow component (negative values are blue, positive values are yellow)

      • Optionalalpha: number

        The alpha (opacity) component (0-1), optional

      Returns OKLabColor

      A new OKLab color object