with_alpha method

with_alpha

Creates copy of the Color with specified alpha component.

Returns

A new instance of the Color class

def with_alpha(self, alpha):
    ...
ParameterTypeDescription
alphafloatValue of Alpha component

See Also