hk_colour
Prev | Chapter 2. Classes in alphabetical order | Next

## hk_colour

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

Figure 2.2. Predefined colour names

> - hk_aqua

> - hk_beige

> - hk_black

> - hk_blue

> - hk_brown

> - hk_fuchsia

> - hk_darkgrey

> - hk_green

> - hk_grey

> - hk_lightgrey

> - hk_lime

> - hk_maroon

> - hk_navy

> - hk_olive

> - hk_orange

> - hk_pink

> - hk_purple

> - hk_red

> - hk_silver

> - hk_teal

> - hk_white

> - hk_yellow

Prev | Up | Next
hk_class | Home | hk_column