Color.from_i

classmethod Color.from_i(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:
compas.colors.Color