to_name method

to_name

Returns the name of the color if it matches a color in the list of CSS named colors, or an empty string.

Returns

A color name.

def to_name(self):
    ...

See Also