Users browsing this thread: 2 Guest(s)
Sprite Limitations for SNES and GBA
#7
(04-06-2016, 12:31 AM)Raccoon Sam Wrote: Also, can I get a source on the "complete list of values for 15-bit colors"?

Midday called on me to answer this one. It's just the values you get when you convert 5-bit values to 8-bit values.

15-bit RGB allocates 5 bits to each color component, so each component can be given integer values from 0 to 31.
Whereas, of course, today's standard is 24-bit RGB, where each color component gets 8 bits, which encompass integer values from 0 to 255.
Converting back and forth is just a matter of some brief math.

Converting 5-bit values to 8-bit values
[Image: xWAjVwN.png]

Converting 8-bit values to 5-bit values
[Image: ba2tR3h.png]

Or, applied more generally:
Converting a-bit values to b-bit values
[Image: NqS5uFU.png]
Reply


Messages In This Thread
RE: Sprite Limitations for SNES and GBA - by Koh - 04-05-2016, 02:29 PM
RE: Sprite Limitations for SNES and GBA - by SomeGuyNamedDavid - 04-07-2016, 05:43 PM
RE: Sprite Limitations for SNES and GBA - by Pik - 04-21-2021, 10:55 PM

Forum Jump: