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
param h:the initial saturation
param h:the initial value

Precondition: The value h is a float between 0.0 and 360.0, not including 360.0. The values s and v are floats between 0.0 and 1.0, inclusive.

Attributes

hue

The hue channel.

Invariant: Value must be a float between 0.0 and 360.0, not including 360.0.

saturation

The staturation channel.

Invariant: Value must be a float between 0.0 and 1.0, inclusive.

value

The value channel.

Invariant: Value must be a float between 0.0 and 1.0, inclusive.

Table Of Contents

Previous topic

Class CMYK

Next topic

Color Constants

This Page