Replies: 3 comments
-
|
It's the "xlibc" palette. This is from the xLIBC library on the TI 84+CSE. It was primarily for ease of use for people transitioning to writing programs on the TI84+CE calculators. The palette itself was originally used because it was easy to generate, the high byte equals the low byte of the 16-bit color value. You can change the palette as needed to anything you want, or use convimg to create a palette from a collection of images. |
Beta Was this translation helpful? Give feedback.
-
|
It sounds like you might not have read the documentation yet about how to set custom colors, so here is that page: https://ce-programming.github.io/toolchain/libraries/graphx.html#overview |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your reply. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I was wondering how to convert an RGB color to an index in the xlibc palette.
According to my analysis, the palette indices are associated with their colors as follows:
2 bits for red, then 3 bits for blue and 3 bits for green.
This means there are half as many shades of red as there are of blue and green. The result is a palette with many shades of blue that are not very distinguishable, and very few shades of red.
However, according to my research, the color whose variations are least perceived by the human eye is blue, not red.
Wouldn't it have been better to store blue on 2 bits, and green and red on 3 bits?
Beta Was this translation helpful? Give feedback.
All reactions