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.

Graphics > How do I change mask color in gfx2gba

#1827 - TooTall - Thu Jan 23, 2003 8:01 pm

Hello,

Newbie question. I am trying to change the mask color to magenta from the default black that gfx2gba sets because some of my sprites use black. I could go through and change all of the black in my sprites to one off of black but there has got to be a way to change the mask to magenta. In the command line options it says you can specify a different color between 0 and 255, I assume this refers to the pallette it creates but am not sure. Any help would be great.

TooTall
_________________
Knowledge speaks, wisdom listens.
-Jimi Hendrix

#1843 - Quirky - Fri Jan 24, 2003 9:06 am

The option -a in gfx2gba does exactly what you want. If magenta is the 10th colour in the palette then you'd do this:

gfx2gba -a10 mypic.pcx


You need a paint program that lets you see where the colours are in your palette, or to use the palette viewer in VBA to check where magenta is at the moment.