TABLE Color Hue Values
Color Hue Number (Second Number)
|
Gray |
0 |
|
Light Orange |
1 |
|
Orange |
2 |
|
Red-Orange |
3 |
|
Pink |
4 |
|
Purple-Blue |
6 |
|
Blue |
7 |
|
Blue |
8 |
|
Light Blue |
9 |
|
Turquoise |
10 |
|
Green-Blue |
11 |
|
Green |
12 |
|
Yellow-Green |
13 |
|
Orange-Green |
14 |
|
Light Orange |
15 |
From the ATARI® 400/800 BASIC REFERENCE MANUAL by permission of Atari, Inc. © 1980.
from 0 to 14 in increments oi 2. The number 0 is the darkest and 14 is the brightest.
Do you understand? Let's find out.
What background color will the following statement make the TV screen?
// (Hint: What color is represented by the number 13 in
Answer #1_
(Answers to questions are printed upside down at the bottom of the page.)
Change the background color. Type SETCOLOR 2,13,4 l:UJH:l.'»
What statement can be used to change the TV screen to a light blue hue with a luminance of 4? Refer to Table 1-1.
Answer #2_
Let's look at another color register. We'll use a 4 for the first number in the SETCOLOR statement. Type
SETCOLOR 4,2,6 GHEl
The border color should now be orange. You guessed it, color register 4 controls the border color. Now change it to black. Type
Can you change the border color to white. What statement will you type? (Hint: Use a hue of gray with a bright luminance.)
Answer #3_
Are you ready for more excitement? Let's try color register 1. Type
SETCOLOR 1,9,14 El
The words should be brighter. This color register controls the brightness (luminance) of the words on the screen. The second
number in the SETCOLOR statement has no effect. The words are the same color as the background. For now, you can only change their luminance and not their color. Later we will color the words.
How could you make the words look as if they disappeared? Try making the words the same color as the background. This technique will be used later for hiding images on the screen.
Caution! Color register 2 does not always control the background color. Likewise, register 4 will not always control the border color and register 1 will not always change character luminance. Hang on until we study color registers in Chapter 2.
Throughout this book challenges will be issued. Some will be easy and some will be difficult. There may be many possible solutions to each challenge. One possible solution for each challenge is listed in Appendix B,
Here is our first challenge.
Challenge #1
Make the screen background color " orange.
Make the border color blue.
Make the words as dark as possible.
Post a comment