from_gray method

from_gray

Returns a new Color with the requested gray value.

Returns

A new instance of the Color class

def from_gray(self, gray):
    ...
ParameterTypeDescription
grayfloatA float that represents the gray value of the color.

See Also