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

    Function oklch

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

      This is the primary factory function for creating OKLCh 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)

      • c: number

        The chroma (saturation/colorfulness) component

      • h: number

        The hue angle in degrees (0-360)

      • Optionalalpha: number

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

      Returns OKLChColor

      A new OKLCh color object