Please note: External links need to be on the whitelist. Please add any new URLs to the whitelist discussion page.
Color
From C64-Wiki
The C64 has got 16 differents colors. The 16 colors can be used in all possible screenmodes, also for chars, the screen (background or frame) or for sprites (also mulitcolor, HiRes), etc.
The colors of the text can be changed direct with a keycombination or with PRINT CHR$(Wert) alternative control characters.For changing colors by sprites or HiRes-graphics must be used the BASIC-command POKE memoryadress, colorcode.
| Color | Name of color | for POKE | Directly keycombination | In programs: PRINT CHR$(X) values of X: | Or PRINT "Control character" (in quotes!) |
|---|---|---|---|---|---|
| Black | 0 | CTRL + 1 | 144 | small square left down | |
| White | 1 | CTRL + 2 | 5 | inverted e e | |
| Red | 2 | CTRL + 3 | 28 | inverted pound | |
| Cyan | 3 | CTRL + 4 | 159 | Triangle left down | |
| Violet | 4 | CTRL + 5 | 156 | inverted halfchess | |
| Green | 5 | CTRL + 6 | 30 | inverted arrow up | |
| Blue | 6 | CTRL + 7 | 31 | inverted arrow left | |
| Yellow | 7 | CTRL + 8 | 158 | inverted π | |
| Orange | 8 | C= + 1 | 129 | inverted heart | |
| Brown | 9 | C= + 2 | 149 | inverted 1/4-circle right down | |
| Lightred | 10 | C= + 3 | 150 | inverted graphic-X | |
| Grey 1 | 11 | C= + 4 | 151 | inverted annulus | |
| Grey 2 | 12 | C= + 5 | 152 | inverted spade | |
| Lightgreen | 13 | C= + 6 | 153 | inverted line right | |
| Lightblue | 14 | C= + 7 | 154 | inverses diamonds | |
| Grey 3 | 15 | C= + 8 | 155 | inverted clubs |
The C= is the Commodore-key
[edit] Memoryadress for colors
A little memory map overview for adresses, which are can be changing colors by the BASIC-command POKE:
- 53280 Color of screenframe (value of colors 0-15, higher numbers result in repeating)
- 53281 Color of screenbackground (normal mode)
- 53282 Color of screenbackground 1 (used in multicolor & extended color mode)
- 53283 Color of screenbackground 2 (used in multicolor & extended color mode)
- 53284 Color of screenbackground 3 (used in multicolor & extended color mode)
- 53285 Sprite multicolor 1 (only in multicolor mode)
- 53286 Sprite multicolor 2 (only in multicolor mode)
- 53287 Color of sprite 0
- 53288 Color of sprite 1
- 53289 Color of sprite 2
- 53290 Color of sprite 3
- 53291 Color of sprite 4
- 53292 Color of sprite 5
- 53293 Color of sprite 6
- 53294 Color of sprite 7
- 55296-56295 Color-RAM - With this memory adress can be direct changing the color of all chars at the screen (25 lines with 40 chars each line); for example:
POKE 55296,1is setting the first char at line 0 and row 0 in the color white.