equals method

On this page

equals

Determines whether the specified Color structure is equivalent to this Color structure.

def equals(self, other):
    ...
Parameter Type Description
other Color The color to test.

Returns: bool: True if other is equivalent to this Color structure; otherwise, False.

equals

Determines whether the specified object is a Color structure and is equivalent to this Color structure.

def equals(self, obj):
    ...
Parameter Type Description
obj Any The object to test.

Returns: bool: True if object is a Color structure equivalent to this Color structure; otherwise, False.

See Also

On this page