Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
Editing Quake palette
From Quake Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 318: | Line 318: | ||
=== Generating the colormap === | === Generating the colormap === | ||
− | The following C code will generate a colormap.lmp that is nearly (but not exactly) identical to the Quake colormap. | + | The following C code will generate a colormap.lmp that is nearly (but not exactly) identical to the Quake colormap. Sorry about the lack of comments, maybe I'll add some later. Consider it public domain. |
/* sample a 24-bit RGB value to one of the colours on the existing 8-bit palette */ | /* sample a 24-bit RGB value to one of the colours on the existing 8-bit palette */ |