to_string method

On this page

to_string

Serializes the Argb32Color instance to the most appropriate CSS function notation depending on translucency.

def to_string(self):
    ...

Returns: str: A string with rgba(r, g, b, a) or rgb(r, g, b) format.

See Also

On this page