Commodore 64 User Manual page 67

Hide thumbs Also See for 64:
Table of Contents

Advertisement

holding down the =key. Now, while again depressing the Mkey
at the same time hit the key. Release theMkey and hit theOkey.
Move through the numbers, alternating with the letters, and type out the
word RAINBOW as follows:
10 PRINT" 1 R1A1I1N1B 1O1W"
00
0
00000
RUN
RAINBOW
Just as cursor controls show as graphic characters within the quote
marks of print statements, color controls are also represented as graphic
characters.
In the previous example, when you held down 0 and typedua
'£" was displayed. M0 displayed a "-". Each color control will
display its unique graphic code when used in this way. The table shows
the graphic representations of each printable color control.
KEYBOARD COLOR DISPLAY KEYBOARD COLOR DISPLAY
00
BLACK
[g
0
ORANGE
m0
WHITE
®0
BROWN
RED
®0
LT. RED
M O CYAN
L ®0 GRAY 1
M0 PURPLE
0
®
0
GRAY 2
=0 GREEN
0
to 0 LT. GREEN
UI
m0
BLUE
can
LT. BLUE
=0 YELLOW
© ® 0 GRAY 3
Even though the PRINT statement may look a bit strange on the
screen, when you RUN the program, only the text will be displayed. And
it will automatically change colors according to the color controls you
placed in the print statement.
Try a few examples of your own, mixing any number of colors within a
single PRINT statement. Remember, too, you can use the second set of
text colors by using the Commodore key and the number keys.
TIP:
You will notice after running a program with color or mode ( reverse ) changes, that the
"READY " prompt and any additional text you type is the same as the lost color or
mode change . To get back to the normal display, remember to depress:
7r::r6iPlli
and
57

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Commodore 64

Table of Contents