gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > color declaration

#44163 - christosterone - Mon May 30, 2005 7:42 pm

sometimes i need to declare each color component in a 0-31 value, while other times i need to declare them 0-255.

which modes do i declare the colors to 31 and when do i declare them as 255?

ex.
RGB(0,0,0) to RGB(31,31,31)
or
RGB(0,0,0) to RGB(255,255,255)

thanks

#44165 - sajiimori - Mon May 30, 2005 7:59 pm

On GBA, colors are always 15 bit (0-31 per channel).

#44173 - tepples - Mon May 30, 2005 9:45 pm

Use 0-255 only when reading bitmap files inside of PC based conversion tools.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.