Please note: External links need to be on the whitelist. Please add any new URLs to the whitelist discussion page.

Color

From C64-Wiki

Jump to: navigation, search

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
Black0CTRL  + 1 144small square left down
White
White1CTRL  + 2 5inverted e e
Red
Red2CTRL  + 3 28inverted pound
Cyan
Cyan3CTRL  + 4 159Triangle left down
Violet
Violet4CTRL  + 5 156inverted halfchess
Green
Green5CTRL  + 6 30inverted arrow up
Blue
Blue6CTRL  + 7 31inverted arrow left
Yellow
Yellow7CTRL  + 8 158inverted π
Orange
Orange8C=  + 1 129inverted heart
Brown
Brown9C=  + 2 149inverted 1/4-circle right down
Lightred
Lightred10C=  + 3 150inverted graphic-X
Dark-Grey
Grey 111C=  + 4 151inverted annulus
Grey
Grey 212C=  + 5 152inverted spade
Lightgreen
Lightgreen13C=  + 6 153inverted line right
Lightblue
Lightblue14C=  + 7 154inverses diamonds
Lightgrey
Grey 315C=  + 8 155inverted 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:

  • 646 Textcolor
  • 647 Color under position of cursor
  • 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,1 is setting the first char at line 0 and row 0 in the color white.
Personal tools
Help and Feedback
In other languages