The Game Dev Atlas, Act I, The Pixel Art Island: an engraved map of an island whose towns are the techniques of pixel art for games.
Unrolling the map...
by Sprite Fusion

Color · Act I

Pixel art loop. A market stall with a red and cream awning, crates of fruit, its keeper, a customer, an apple tree and a pumpkin. Under it a strip of swatches: the palette, and under each color the color it is shown as. The stall is seen by day. Then night comes as one blue tint: everything dims alike, the lanterns too. Then by lookup: the colors take their night answers a few at a time, the shadows go blue and the stars come out. A line runs from a lantern down to its yellow in the strip, that swatch stays yellow, and the lanterns light and throw a warm light on the ground.
Act I, fig. 16 One stall, drawn once. First a naive night, one blue tint. Then the strip under it says what each color becomes by night.

The naive way to set up night in pixel art games is to tint the whole thing with a cold blue color. A better way to handle that is to keep a table that says what every color becomes, and read each pixel through it. Shadows can go blue while the lights stay warm. Swap the table and the whole game changes season. Blend two for dusk.

Grade my game with color lookup tables: one small picture per mood, blended as the mood changes.
Read the whole brief
Add color grading by lookup table (LUT) to my [2D pixel art] game.
Moods: [day, dusk, night].

- Start from a neutral lookup: a 256 x 16 strip holding a 16 x 16 x 16 block of colors, each one answering itself.
- For each mood I color-correct a screenshot in a paint program, then apply the same adjustments to a copy of that strip.
- In one full-screen pass, replace each pixel's color by the color at its place in the mood's strip.
- To change mood, blend from one strip to the next over [3] seconds. Keep every strip the same size.
- If my art keeps to a fixed palette of [32] colors, one row of [32] entries is enough, and every answer stays in the palette.
- Let chosen colors keep their own answer in a dark mood: [lantern yellow] stays [lantern yellow] at night.
- Draw the interface after the lookup, so its colors are not changed.

Show me one scene under every mood, with its strip beside it, before you wire it to the clock.

Change what stands in [brackets] to fit your game.

  1. One set of art must carry many moods: hours, seasons, weather, a cursed zone. Each mood is one small picture an artist grades in a paint program.
  2. A mood must treat colors differently: shadows to blue, lamps still warm, a red kept red. One tint over the whole screen cannot do that.

Not forLight that has a place. A lookup changes a color the same way all over the screen, so it cannot light the ground under one lamp. That takes real lights.

Graveyard Keeper's artist made 10 lookup tables for the times of day.[1] Unreal Engine stores one as a 16 x 16 x 16 block unwrapped to a 256 x 16 texture.[2] Unity can blend several of the same size.[3] The stall and its 32-color row are this atlas's own.

  1. Svyatoslav Cherkasov, Graveyard Keeper: How the graphics effects are made, Game Developer, 2018
  2. Using Look-up Tables for Color Grading in Unreal Engine, Unreal Engine documentation
  3. Color Grading, Unity Post Processing manual

A lookup table works best on art that keeps to a fixed palette. Pick one from the popular pixel art palettes, free to download.

Browse the palettes