Class HSV¶
-
class
colormodel.
HSV
(h, s, v)¶ An instance is a HSV color value.
Constructor: creates a new HSV color (h,s,v).
param h: the initial hue Precondition: float between 0.0 and 360.0, not including including 360.0.
param s: the initial saturation Precondition: float between 0.0 and 1.0, inclusive.
param v: the initial value Precondition: float between 0.0 and 1.0, inclusive.
No arguments are optional.
Attributes¶
-
HSV.
hue
¶ The hue channel.
Invariant: Value must be a float between 0.0 and 360.0, not including 360.0.
-
HSV.
saturation
¶ The staturation channel.
Invariant: Value must be a float between 0.0 and 1.0, inclusive.
-
HSV.
value
¶ The value channel.
Invariant: Value must be a float between 0.0 and 1.0, inclusive.