Atari Lynx programming tutorial working with the color palette.
Here we show the default palette.
The code will first clear the screen, display a header, then print the hex values twice: once against a black background and another time against a white background.
cc65
make clean
make all
load the resultant color.lyx file into your emulator
These names are defined in the lynx.h include file.
Palette index Name
0 COLOR_BLACK
1 COLOR_RED
2 COLOR_BLUE
3 COLOR_GREEN
4 COLOR_VIOLET
5 COLOR_CYAN
6 COLOR_PEAGREEN
7 COLOR_GREY
8 COLOR_NAVYBLUE
9 COLOR_LIGHTRED
A COLOR_LIGHTBLUE
B COLOR_LIGHTGREEN
C COLOR_LIGHTPURPLE
D COLOR_LIGHTCYAN
E COLOR_YELLOW
F COLOR_WHITE