Swap whole ramps, don't hue-rotate sprites
Recolouring a pixel-art prop by dragging an HSV hue slider looks fast—until the iron turns olive, the outlines drift off-palette, and even a masked flame shifts from teal shell to purple core. Drawing recolourable parts with semantic aliases (brew0..3, fl0..3) and swapping whole tuned ramps produces 7 animated Brazier and Cauldron variants using 30 of 32 master colours and 0 off-palette pixels.
Why HSV hue-rotating a sprite breaks pixel art—even with a mask
When a dungeon prop needs three potion colours or four flame types, the fastest temptation in an image editor or shader is an HSV hue rotation. On a sprite drawn from a shared 32-colour master palette, rotating the whole sprite by +190° to turn an orange brazier flame into blue soulfire immediately wrecks every material at once: all 11 of 11 colours leave the master palette (1,169 of 1,169 opaque pixels on frame 0), the violet-shaded wrought iron turns olive-green, and the #17121f outline shifts away from every other prop in the scene.
Masking the iron so only the 4 flame colours (r1, r2, r3, g3) rotate still fails on two counts. First, all 4 rotated flame steps remain off-palette (#329ca8, #3a9ee0, #3c79f8, #a8a8ff—463 of 1,169 pixels on frame 0, 5,291 of 13,756 across all 12 frames), silently bloating your project's colour count with every variant you add.
Second—and more visibly—a rigid +190° offset drags the original warm fire ramp sideways around the hue wheel in the wrong direction. The orange fire ramp shifts from crimson r1 (356°) through orange r2 (14°) and amber r3 (31°) to warm yellow-white g3 (50°). Adding +190° turns that into a teal outer shell (186°), sky-blue midtone (204°), heavy cobalt inner layer (221°), and lavender-white core (240°)—the exact opposite of how blue soulfire reads. Real blue fire moves from deep dark blue on the cool shell (b1, 217°) through cerulean (b2, 202°) to luminous ice cyan (b3, 185°) and a warm cream-white core (n5, 36°).
Measured across 7 shipped variants: Brazier (4 flames) & Cauldron (3 brews)
Every measurement below comes directly from the shipped 1× sprite sheets in Arcane Curiosities Vol.1 and the 32-colour MASTER palette in palette.mjs: all 4 lit Brazier variants (48×64, 12 frames: idle-fire, idle-soul, idle-witch, idle-bile) and all 3 Cauldron variants (48×48, 12 frames: idle-green, idle-violet, idle-blue), compared against real whole-sprite and flame-masked HSV +190° rotations of brazier-idle-fire.
On the Brazier, swapping fl0..3 from fire (r1, r2, r3, g3) to soul (b1, b2, b3, n5) or witch (v1, v2, v3, n5) recolours 463 of 1,169 opaque pixels on frame 0 (39.6%, and 5,291 of 13,756 across all 12 frames = 38.5%)—covering the three overlapping flames, detached licking tongues, rising embers, glowing coal cracks, and the inner-rim reflection in one stroke. All 706 iron, strap, rivet, outline, and contact-shadow pixels on frame 0 stay byte-identical. Even better, because soul and witch reuse neutral cream n5 (already present on the lit iron rivets) as their white-hot core fl3, their colour count actually drops from 11 to 10 colours while adding 0 off-palette pixels. Bile fire keeps the shared g3 core (42 core pixels on frame 0), swapping 421 of 1,169 pixels (36.0%) and using 11 colours. Across all 4 Brazier variants combined, the sprite uses 20 of 32 master colours with 0 off-palette colours.
On the Cauldron, the prop deliberately separates two independent colour roles: the brew, bubbles, rising steam, and pulsing diamond sigil on the belly all draw through semantic aliases brew0..3, while the wood fire underneath draws directly from r1..r3 and g3. Calling swap("brew", "v") or swap("brew", "b") swaps exactly 142 of 1,238 opaque pixels on frame 0 (11.5%, and 1,676 of 14,871 across 12 frames = 11.3%), leaving all 1,096 iron, brass bezel, wood log, hearth fire, and outline pixels untouched. Each Cauldron variant uses 21 colours, and all 3 combined use 29 of 32 master colours with 0 off-palette colours. Put all 7 variants from both props together and the union sits at 30 of 32 MASTER colours (only w0 and g0 go unused), 0 off-palette colours, and 0 new colours added.
Wrought-Iron Brazier (48×64, frame 0 — HSV +190° vs real rampSwap)

Whole-sprite HSV +190°: 11/11 colours off-palette (1,169/1,169 px = 100%) — dyes wrought iron olive and shifts ink

Flame-masked HSV +190°: 4 off-palette colours (463/1,169 px = 39.6%) — hue shift runs backwards (teal shell to purple core)

Real swap("fl", "soul"): 0 off-palette colours, 10 colours total — deep blue shell -> ice cyan -> warm cream core (n5)

Exact pixel diff (fire vs soul): 463/1,169 px swapped on f0 (39.6%; 5,291/13,756 across 12f), 706 iron/ink px untouched
Bubbling Cauldron (48×48, frame 0 — green vs violet & blue + pixel diff)

Default idle-green: brew0..3 map to e0..e3 (21 colours, 0 off-palette)

swap("brew", "v"): brew0..3 -> v0..v3 — liquid, bubbles, steam & sigil shift together (21 colours)

swap("brew", "b"): brew0..3 -> b0..b3 — crisp mana-blue brew over untouched orange hearth fire (21 colours)

Exact pixel diff (green vs violet/blue): 142/1,238 px swapped on f0 (11.5%; 1,676/14,871 across 12f), 1,096 iron/wood/fire px untouched
Measured colour counts & swapped pixels across all 7 variants (+ HSV +190° baselines)
| Asset / variant | Method | Colours | Off-palette | Changed f0 | Changed 12f |
|---|---|---|---|---|---|
| brazier +190° (whole) | Whole-sprite HSV +190° | 11 | 11 (100%) | 1,169 / 1,169 (100%) | 13,756 / 13,756 (100%) |
| brazier +190° (masked) | Flame-only HSV +190° | 11 | 4 (39.6%) | 463 / 1,169 (39.6%) | 5,291 / 13,756 (38.5%) |
| brazier · idle-fire | default fl0..3 (r1 r2 r3 g3) | 11 | 0 | baseline | baseline |
| brazier · idle-soul | swap("fl", "soul") (b1 b2 b3 n5) | 10 | 0 | 463 / 1,169 (39.6%) | 5,291 / 13,756 (38.5%) |
| brazier · idle-witch | swap("fl", "witch") (v1 v2 v3 n5) | 10 | 0 | 463 / 1,169 (39.6%) | 5,291 / 13,756 (38.5%) |
| brazier · idle-bile | swap("fl", "bile") (e1 e2 e3 g3) | 11 | 0 | 421 / 1,169 (36.0%) | 4,778 / 13,756 (34.7%) |
| cauldron · idle-green | default brew0..3 (e0 e1 e2 e3) | 21 | 0 | baseline | baseline |
| cauldron · idle-violet | swap("brew", "v") (v0 v1 v2 v3) | 21 | 0 | 142 / 1,238 (11.5%) | 1,676 / 14,871 (11.3%) |
| cauldron · idle-blue | swap("brew", "b") (b0 b1 b2 b3) | 21 | 0 | 142 / 1,238 (11.5%) | 1,676 / 14,871 (11.3%) |
| All 7 shipped variants | MASTER 32-colour union | 30 / 32 | 0 | 0 new colours | unused: w0, g0 |
Exact counts measured across frame 0 and all 12 frames of every shipped Brazier and Cauldron sheet plus the two HSV +190° baselines. Every shipped variant stays strictly inside the 32-colour MASTER palette (0 off-palette).
Semantic aliases in palette.mjs, one-line variant swaps per prop
The architecture has two small pieces. First, palette.mjs (lines 23–28) defines semantic alias families alongside the 32-colour MASTER palette: brew0..3 default to e0..e3 (green brew), glow0..3 default to b0..b3 (blue mana), and fl0..3 default to r1, r2, r3, g3 (shell, body, bright, core of an orange flame). Because each alias points to an existing hex in MASTER, registering aliases adds zero colours.
Second, rampSwap(family, ramp) in palette.mjs (lines 40–45) builds a repalette map that moves an entire 4-step alias family (family0..3) onto another pre-tuned master ramp. In the prop build runner, the shorthand swap(family, ramp) exposes both the standard master ramps (v, b, e, r, g) and tuned 4-step flame ramps (soul: b1/b2/b3/n5, witch: v1/v2/v3/n5, bile: e1/e2/e3/g3).
Once a prop draws its recolourable surfaces through brew0..3 or fl0..3 instead of hardcoding green or orange keys, shipping every colour variant takes a single line inside submit(..., { variants })—see cauldron.js lines 197–201 and brazier.js lines 183–187. Because the iron, wood, outlines, and hearth fire still reference raw master keys (n0..n5, w1..w4, r1..r3, ink), they can never accidentally drift when a variant swaps ramps.
palette.mjs lines 23–28 & 40–45: semantic aliases (brew0..3, glow0..3, fl0..3) map to existing MASTER keys, and rampSwap() remaps a whole 4-step family onto another tuned master ramp.
export const ALIASES = { brew0: "e0", brew1: "e1", brew2: "e2", brew3: "e3", glow0: "b0", glow1: "b1", glow2: "b2", glow3: "b3", // flame family: shell, body, bright, core (fire by default) fl0: "r1", fl1: "r2", fl2: "r3", fl3: "g3",};⋯export function rampSwap(family, ramp) { const p = RAMPS[ramp]; const m = {}; for (let i = 0; i < 4; i++) m[`${family}${i}`] = MASTER[`${p}${i}`]; return m;}cauldron.js lines 197–201: violet and blue brew variants each take one swap("brew", ...) line—recolouring the liquid, bubbles, steam, and pulsing front sigil while keeping iron, wood, and hearth fire fixed.
variants: [ { name: "idle-green" }, { name: "idle-violet", repalette: swap("brew", "v") }, { name: "idle-blue", repalette: swap("brew", "b") }, ],brazier.js lines 183–187: soul, witch, and bile flames each take one swap("fl", ...) line—recolouring flames, embers, coal cracks, and inner-rim glow without touching a single pixel of the wrought iron.
variants: [ { name: "idle-fire" }, { name: "idle-soul", repalette: swap("fl", "soul") }, { name: "idle-witch", repalette: swap("fl", "witch") }, { name: "idle-bile", repalette: swap("fl", "bile") },Checklist for palette-safe sprite recolours
A cohesive 32-colour game palette only stays cohesive if your recolour workflow respects it. Hue-rotating exported PNGs breaks that contract invisibly—one variant at a time—until props from the same pack stop looking like they belong in the same room.
Separating material identity (semantic aliases) from final pigment (tuned master ramps) gives you instant variants with zero palette bloat and hand-tuned hue shifts in every colour.
- Never run HSV hue rotation over a finished pixel-art sprite: it contaminates neutrals and outlines (11/11 colours off-palette on Brazier) and can invert the cool-shadow-to-warm-light hue shift even when masked.
- Draw every recolourable feature through semantic alias keys (brew0..3, glow0..3, fl0..3) and keep fixed materials (iron n0..n5, wood w0..w4, ink) on raw master keys so variant swaps never leak into surrounding geometry.
- Swap whole 4-step ramps onto pre-tuned ramps inside the same master palette—and let bright flame cores reuse existing neutral highlights (like n5 or g3) instead of inventing new off-palette tints.
- Verify exported variant sheets automatically: assert that the union of every pixel across all variants stays a subset of MASTER with 0 off-palette colours.
Arcane Curiosities Vol.112 animated props · 52 animations
Every sprite in these notes ships with its source
Tessarune includes all 72 Arcane Curiosities props and their full Tessarune source files as a bonus, so you can inspect, edit, and re-render every technique locally.