Amos Professional Manual  Contents  Index

Graphics


That example creates a lit of 16 colour values in hex code, alongside a ripple of circles in those colours. Note that the $ symbol is always used to introduce a hex number for the Amiga to recognise. The first hex value in the example table should be $000, meaning no Red, no Green and no Blue component is present in colour index 0. Sure enough, the innermost circle is drawn in black ink.

Here are some other examples in this form of notation:

Colour    Hex value    RGB components
White     $FFF         R=F G=F B=F
Grey      $666         R=6 G=6 B=6
Green     $0F0         R=0 G=F B=0
Violet    $FOF         R=F G=0 B=F
Ox blood  $801         R=8 G=0 B=1
Pig foot  $A74         R=A G=7 B=4

COLOUR
instruction: assign a colour to an index
Colour number,$RGB

Used as an instruction, COLOUR allows you to assign the RGB components of a colour to each of the Amiga's 32 colour registers. For example, if you wanted to load colour number 1 with a subtle shade of pig's feet, you would use this:

E> Cls : Colour 1,$A74
COLOUR BACK
instruction: assign a colour to the screen background
Colour Back $RGB
Colour Back (number)

This command is used to assign your choice of RGB components for the screen's background colour, which fills unused areas at the top and bottom of the visible screen. Alternatively, existing colours may also be specified when enclosed in brackets.

Setting several colours
Impressive effects can be programmed using multi-colour changes, but assigning individual colours to every colour index would be a tedious business. AMOS Professional handles all the donkey work as usual.

PALETTE
instruction: set the current screen colours
Palette colour list

This is a much more powerful command than COLOUR, and it can be used to set as few or as

Back    Next
06.04.06