equals method

On this page

equals

Compares channel values with another redaction color.

def equals(self, item):
    ...
Parameter Type Description
item Color The color to compare with.

Returns: bool: True when all channels match; otherwise False.

equals

Compares the color with another object.

def equals(self, item):
    ...
Parameter Type Description
item Any The object to compare with.

Returns: bool: True when item is a matching Color; otherwise False.

Aliases

These names call equals too, limited to the overloads listed.

Alias Accepts
equals_color equals_color(item)
equals_object equals_object(item)

See Also

On this page