Palette tools?

A place for your artistic side. Discuss techniques and tools for pixel art on the NES, GBC, or similar platforms.

Moderator: Moderators

Post Reply
djcouchycouch
Posts: 97
Joined: Sat May 28, 2011 10:30 am

Palette tools?

Post by djcouchycouch »

Hi!

Are there any tools available that would let me reorder the colors of an image's palette without affecting the image itself?

Contrived simplified example: changing the palette of an image from [blue][red][green][yellow] to [yellow][green][red][blue] and still keep the image looking the same.

For extra difficulty, I have two images that have very similar colors but their palettes are in a different order. Are there any tools available that can help unifying them easier than fixing it by hand?

Thanks!
DJCC
User avatar
Bregalad
Posts: 8056
Joined: Fri Nov 12, 2004 2:49 pm
Location: Divonne-les-bains, France

Re: Palette tools?

Post by Bregalad »

If your graphics are already in tiled format, YY-CHR can do this very well.

Otherwise I don't know.
djcouchycouch
Posts: 97
Joined: Sat May 28, 2011 10:30 am

Re: Palette tools?

Post by djcouchycouch »

Bregalad wrote:If your graphics are already in tiled format
In tiled format? I'm not sure what that means.

Doesn't YY-CHR work with the data inside roms?

In my case, I'm working with bitmaps that get converted to binary when my game gets built.
3gengames
Formerly 65024U
Posts: 2284
Joined: Sat Mar 27, 2010 12:57 pm

Re: Palette tools?

Post by 3gengames »

YY-chr can work on .bin files you include in your ROM easy too. As for making palettes, I just hex editor them myself.
User avatar
Kasumi
Posts: 1293
Joined: Wed Apr 02, 2008 2:09 pm

Re: Palette tools?

Post by Kasumi »

Grafx2 will let you reorganize palettes if I remember correctly. (If I'm not remembering correctly, let me know. I'm sure I know of a program that will do this.)

Edit: Yes, Grafx2 will do it. Click the L. Select your image. Click PAL. Click next to the one of the colors you want to swap the order of. Click X-Swap. Click the color you want to swap its position with. Click okay. Save.

Edit2: As a matter of fact, your example would be even easier. Click and drag to select the colors you want to reverse the order of. Then click X-invert. It will make the lowest index number selected the highest, the highest the lowest etc. without changing the image.

For part two, (unifying palettes) ASEPRITE may do that if I'm understanding correctly.

Open the indexed image whose palette you want the other image to use with ASEPRITE.

Open the second image with ASEPRITE. Go to sprite, color mode, RGB color. Then copy it.

Paste into the first image's tab. ASEPRITE will try to match the RGB image's pixels to the nearest colors available in the palette. (But it may not give you the result you want, depending on how close the colors are. You may get two colors that end up with the same index after pasting for instance. In which case, do it by hand.)

(If that doesn't work, open the second image you want to unify with some other program that will copy it to the copy buffer as RGB rather than indexed.)

Save as a new filename.
Last edited by Kasumi on Sat Dec 15, 2012 2:16 pm, edited 3 times in total.
User avatar
Dwedit
Posts: 4924
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: Palette tools?

Post by Dwedit »

Photoimpact lets you re-order the palette without changing the image, but you must save as a BMP file afterwards, otherwise it will automatically re-order the palette again.
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
lidnariq
Posts: 11432
Joined: Sun Apr 13, 2008 11:12 am

Re: Palette tools?

Post by lidnariq »

tepples
Posts: 22708
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Palette tools?

Post by tepples »

Or in GIMP:
  1. Create a new RGB image of the same size.
  2. Fill it with the first color in the desired palette.
  3. Image > Mode > Indexed and accept the defaults.
  4. Open the colormap: Windows > Dockable Dialogs > Colormap.
  5. For each color in order, choose the color in the color picker, then add it to the new image's colormap.
  6. Paste something into this window.
djcouchycouch
Posts: 97
Joined: Sat May 28, 2011 10:30 am

Re: Palette tools?

Post by djcouchycouch »

Kasumi wrote: For part two, (unifying palettes) ASEPRITE may do that if I'm understanding correctly.

Open the indexed image whose palette you want the other image to use with ASEPRITE.

Open the second image with ASEPRITE. Go to sprite, color mode, RGB color. Then copy it.

Paste into the first image's tab. ASEPRITE will try to match the RGB image's pixels to the nearest colors available in the palette. (But it may not give you the result you want, depending on how close the colors are. You may get two colors that end up with the same index after pasting for instance. In which case, do it by hand.)

(If that doesn't work, open the second image you want to unify with some other program that will copy it to the copy buffer as RGB rather than indexed.)

Save as a new filename.
I realized I could do this with Graphics Gale, which is what I use. Thanks for the idea!
User avatar
thefox
Posts: 3134
Joined: Mon Jan 03, 2005 10:36 am
Location: 🇫🇮
Contact:

Re: Palette tools?

Post by thefox »

Kasumi wrote:Grafx2 will let you reorganize palettes if I remember correctly. (If I'm not remembering correctly, let me know. I'm sure I know of a program that will do this.)
Thanks, didn't know about this tool.

I'll just add that reorganizing the palette in Photoshop is absolutely painful.
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: fo.aspekt.fi
Post Reply