with_luminosity method

with_luminosity

Creates copy of the Color with specified luminosity.

Returns

A new instance of the Color class.

def with_luminosity(self, luminosity):
    ...
ParameterTypeDescription
luminosityfloatValue of luminosity

See Also