to_known_color method

to_known_color(self)

Gets the KnownColor value of this color.

Returns

An element of the KnownColor enumeration, if the color is a predefined color; otherwise, 0.

def to_known_color(self):
    ...

See Also