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

    Function labFromVector

    • Creates a new Lab color object from a vector of Lab components.

      This utility function is useful when working with color calculations that produce arrays of values rather than individual components.

      Parameters

      • v: number[]

        A vector containing the Lab components [l, a, b]

      • Optionalalpha: number

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

      • Optionalilluminant: Illuminant

        The reference white point to use, defaults to D65

      Returns LabColor

      A new Lab color object

      If the vector does not have exactly 3 components