Color
    Preparing search index...

    Function complementLch

    • Determine the complementary color(s) of the given color.

      Parameters

      • color: Readonly<Lchab>

        The color to find the complement(s) of in CIE-L*Ch(ab).

      • Optionaln: number

        The number of complements to find. This can be 1 for a complementary color, 2 for triadic colors, 3 for tetradic colors, and so on.

      Returns ([number, number, number] & Lchab)[]

      The complements of the given color.

    • Determine the complementary color(s) of the given color.

      Parameters

      • color: Readonly<Lchuv>

        The color to find the complement(s) of in CIE-L*Ch(uv).

      • Optionaln: number

        The number of complements to find. This can be 1 for a complementary color, 2 for triadic colors, 3 for tetradic colors, and so on.

      Returns ([number, number, number] & Lchuv)[]

      The complements of the given color.