Chapter
10
1
BASIC
Keywords
The array may be larger than the palette. PALETTE USING
stops filling the current palette when
it
reaches the last position
in the palette.
If you use the 2 shades of blue with the 2 shades of red, and also
use the 2 shades of blue with the 2 shades of cyan, you can put
the numbers for the shades of blue in your array as often
as
you
need them. You can expand the previous array, for example:
Subscript Color
0
1
2
3
4
5
6
7
8
9
2 (Green)
10 (Light Green)
1
(Blue)
9 (Light Blue)
4
(Red)
12 (Light Red)
9 (Light Blue)
1
(Blue)
3
(Cyan)
11
(Light Cyan)
Examples
PALETTE
USING
A(2)
loads the palette with the blues and reds. Color
1
is still blue.
Color
2
becomes light blue, Color
3
becomes red, Color
4
becomes
light red.
PALETTE
USING
A(4)
puts the same colors in the palette in a different order. In this
case, Color
1
becomes red, Color
2
becomes light red, Color
3
be-
comes light blue, Color
4
becomes blue.
256