Color
    Preparing search index...

    Function complement

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

      Parameters

      • color: Readonly<Hsi>

        The color to find the complement(s) of in HSI.

      • 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] & Hsi)[]

      The complements of the given color.

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

      Parameters

      • color: Readonly<Hsl>

        The color to find the complement(s) of in HSL.

      • 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] & Hsl)[]

      The complements of the given color.

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

      Parameters

      • color: Readonly<Hsv>

        The color to find the complement(s) of in HSV.

      • 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] & Hsv)[]

      The complements of the given color.