Color.from_number
- classmethod Color.from_number(number)[source]
Construct a color from a single number in the range 0-1.
- Parameters:
- numberfloat
Number in the range 0-1, representing the color.
- Returns:
Site Navigation
Construct a color from a single number in the range 0-1.
Number in the range 0-1, representing the color.