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

    Function lch

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

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

      • 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

      • Optionalilluminant: Illuminant

        The reference white point to use, defaults to D65

      Returns LChColor

      A new LCh color object