to_string method

to_string(self)

Converts this color to a human-readable string. The same text is returned by str() and repr().

Returns

Color [Red] for a named color, Color [Empty] for Color.empty, or Color [A=255, R=1, G=2, B=3] for a color created from components.

def to_string(self):
    ...

See Also