from_name method

from_name

Creates a Color structure from the specified name of a predefined color.

Returns

The Color that this method creates.

def from_name(self, name):
    ...
ParameterTypeDescription
namestrA string that is the name of a predefined color. Valid names are the same as the names of the elements of the KnownColor enumeration.

See Also