Making Color-Changeable Bodies

Making Color-Changeable Bodies

Taylor Richaards, the graal.codes mascot

Graal bodies support five customizable colors. You can apply them to any part of your body file and use as many or as few as you like. To make them work in-game, the colors must occupy specific positions in your body's palette. This is called indexing.

Body Color Indexing

Graal reserves the first seven positions of an 8-bit color palette:

  • 0Outline
  • 1Belt
  • 2Transparency
  • 3Shoes
  • 4Sleeves
  • 5Skin
  • 6Coat

The actual colors do not matter, only their positions. The names correspond to Graal's color settings, but you can use them however you like. For example, the sleeves setting could change a pattern on someone's shirt. Although there is no in-game outline setting, index 0 remains reserved for it.

Colors from index 7 onward remain unchanged in-game. Use these for any parts of your artwork you want to keep as drawn.

In Your Editor

Aseprite

  1. Open your body and save a working copy.
  2. Select Sprite > Color Mode > Indexed, if needed.
  3. Drag palette colors into the positions shown above, adding unused colors for any slots you do not need.
  4. Use Remap Palette to preserve the artwork's appearance after rearranging the palette.
  5. Under Sprite > Properties, set the transparent color index to 2, and check that the pixels meant to be transparent use that index.
  6. Save as an indexed PNG and check the result.

Alternatively, install the Aseprite Graal Body Indexing extension. Select Sprite > Graal Body Indexing... and follow the prompts.

GIMP

  1. Open your body and save a working copy.
  2. If the background is transparent, fill it with a unique color and select Image > Flatten Image.
  3. Select Image > Mode > Indexed, without dithering.
  4. Open Windows > Dockable Dialogs > Colormap to inspect the palette and add any missing placeholder colors.
  5. Select Colors > Map > Rearrange Colormap and arrange the colors, placing your background color at index 2.
  6. Export as a PNG and check the palette.

Photoshop

Photoshop supports indexed color through Image > Mode > Indexed Color, with palette editing available under Image > Mode > Color Table.

The finished palette must follow Graal's required order.

The Easiest Way

Body Indexer handles everything automatically, regardless of which graphics editor you use.

  1. Add one or more bodies to the tool.
  2. Choose which colors should be changeable.
  3. Download your indexed PNG! Simple!