represents a RGB-colour.
Inherits from hk_class.
Figure 2-1. hk_colour methods
- hk_colour( red, green, blue)
Constructor. Creates a new hk_colour object and sets the RGB values of the colour
- set_colour( red, green, blue)
sets the RGB colour. Valid values are in the range 0 to 255. returns True if successful, False if the colour could not be set (out of range).
- red()
returns the RGB red value
- green()
returns the RGB green value
- blue()
returns the RGB blue value