HSVColor

class ledwall.components.HSVColor(h=0.0, s=1.0, v=1.0)

Represents a color in the HSV color space. The components of the HSV color are normalized to the intervall [0.0;1.0].

If you have in values to create a HSVColor you can use the class method fromIntValues to create an instance.

The hue component has to be within the range of [0;360]. Saturation and value in the range of [0;100]

The rgb property returns the converted and normalized values in the RGB color space.

h

Same as the property hue. Just for the lazy people.

Return type:float
hue

The normalized hue component of the color.

Return type:float
intValues

Returns the int values for the three components. The normalized hue value is projected on the intervall [0;360] and value and saturation are projeted on the intervall [0;100]

Return type:tuple(int)
rgb

Returns a tuple with the converted and normalized rgb values

Return type:tuple(float)
s

Same as the property saturation. Just for the lazy people.

Return type:float
saturation

The normalized saturation component of the color.

Return type:float
saturation100
The saturation component of the color as a value
in the intervall of [0.0;100.0].
Return type:float
v

Same as the property value. Just for the lazy people.

Return type:float
value

The normalized value component of the color.

Return type:float
value100
The value component of the color in the range
of [0.0;100.0].
Return type:float