Why glowing orbs look pasted on (relight the stone)
Hover a bright orb over a dark stone column and it immediately reads as a sticker—because none of the stone reacts. On Orb Pedestal (Dungeon Mechanisms Vol.2), the orb, rising motes, dish inner wall, socket pool, and carved shaft rune all read one shared glow0..3 ramp: 41 of 502 stone pixels breathe with the orb, recolour in one line, and fade 41 → 29 → 21 → 9 → 0 when the orb is taken.
Why glowing orbs look pasted on—and why orb-only swaps break
In top-down pixel art, an emissive object—a floating mana orb, crystal, or rune—almost never sits in empty space. It hovers a few pixels above stone, metal, or wood. If you draw the pedestal completely unlit (using only neutral stone n0..n4) and float a bright orb above it, 0 of 502 pedestal pixels react to the light source directly overhead. Even with a crisp outline and rotating internal swirl, the orb reads like a separate UI sticker dropped on top of a static prop.
Baking bounce light onto the stone fixes the first frame, but introduces a second trap the moment you need colour variants. If you swap only the orb and rising motes from blue to violet while leaving the dish and rune painted in fixed blue keys (b0..b3), 41 stone pixels stay stuck in blue on frame 0 (40 pixels on peak frames f4–f8 where the rune center hits shared cream n5; 487 of 8,037 opaque pixels across all 12 frames = 6.1%). The violet orb clashes visually with blue bounce light underneath, and the sprite's colour count bloats from 18 to 22 colours (and from 15 to 19 on the green variant) by keeping four stale blue shades alive.
The clean fix is architectural: never hardcode b0..b3 on either the emitter or the surfaces it illuminates. Put both on one shared semantic ramp—GL = ["glow0", "glow1", "glow2", "glow3"]—while leaving non-glowing stone, brass, moss, and ink on raw master keys. Now the bounce light breathes when the orb bobs, swaps colour in lockstep with the orb in one line, and steps down to bare stone when the orb disappears.
Measured on Orb Pedestal: 41 relit stone pixels, 5 variants, and an 8-frame decay
Every count below is measured directly from the shipped 32×48 sprite sheets of Orb Pedestal in Arcane Curiosities Vol.2 — Dungeon Mechanisms (idle, idle-violet, idle-green, take, and empty) and the 32-colour MASTER palette in palette.mjs. The bare unlit pedestal (empty frame 0) covers 502 opaque pixels in 13 colours (0 glow pixels). In every frame of the 12-frame idle loops, exactly 41 of those 502 pedestal pixels (8.2%, or 492 of 6,024 pedestal pixels across 12 frames) are relit by the orb across three specific surfaces facing it: 12 pixels on the far inner wall of the dish (socket(), line 103), 20 pixels in the shallow socket pool directly beneath the orb (socket(), lines 107–108), and 9 pixels inside the carved shaft rune (rune(), lines 61–64).
All remaining 461 pedestal pixels—the stepped stone plinth, cylinder-shaded shaft, dish rim, 8 brass collar pixels (g0..g3), 6 plinth moss pixels (e0..e2), #17121f ink outline, and contact shadow—stay completely untouched. Because the orb, motes, and all three lit stone zones read glow0..3, calling swap("glow", "v") or swap("glow", "e") relights 166 of 669 opaque pixels on frame 0 (125 orb/mote pixels plus all 41 stone pixels; 165 of 670 on peak frame 5 where the rune center shares cream n5; 1,981 of 8,037 opaque pixels = 24.6% across 12 frames) in a single line. Both idle and idle-violet stay at 18 colours, while idle-green drops to just 15 colours because its e0..e3 glow ramp reuses the plinth's existing moss ramp (e0..e2) plus e3. Across all 5 shipped variants combined, the asset uses 23 of 32 MASTER colours (only wood w0..w4 and fire r0..r3 are unused) with 0 off-palette colours and 0 new colours added.
Shared bounce lighting also makes state transitions read cleanly. In the 8-frame one-shot take animation, the orb flares, lifts, collapses into a streak, and bursts into sparkles. Rather than snapping the stone off in one frame, the KEYS table (lines 184–192) steps (rune, pool) down in lockstep so the three stone zones extinguish in physical order: 41 → 41 → 41 → 41 → 29 → 21 → 9 → 0 lit pixels. On frame 4 (pool = 1), the 12-pixel far dish wall drops off first because line 103 requires pool >= 2; on frame 5 (pool = 0), the outer 8 pixels of the socket pool drop to dark stone n0; on frame 6 (pool = -1), the pool goes completely dark while the 9-pixel carved rune holds one last ember (glow0/glow1); and on frame 7, drawEmpty(g, 0) lands on 0 lit pixels—matching empty frame 0 with 0 differing pixels.
Orb Pedestal (32×48, peak frame f5 — unlit vs orb-only vs shared glow0..3)

Unlit stone (pasted on): 0/502 stone px react — misses 41 relit px/frame (492/8,037 = 6.1% over 12f)

Orb-only swap (violet over blue stone): 40 px wrong blue on f5 (41 on f0; 487/8,037 over 12f) and bloats 18 -> 22 colours

Shared glow0..3 swap: all 41/502 stone px relit in violet together with orb & motes (18 colours, 0 off-palette)

Exact 3-zone relight mask (41/502 px = 8.2%): gold far wall (12), cyan socket pool (20), green shaft rune (9); 461 px untouched
All 3 lit colour variants + bare empty pedestal (32×48, 0 off-palette)

idle (blue, f5): default glow0..3 -> b0..b3 (18 colours, 41 stone px relit)

idle-violet (f5): swap("glow", "v") -> v0..v3 (18 colours, 0 off-palette)

idle-green (f5): swap("glow", "e") -> e0..e3 (15 colours — reuses plinth moss e0..e2)

empty (f0, bare stone): 502 opaque px, 13 colours, 0 glow px (pixel-identical to take f7)
Orb Pedestal — measured stone relight & palette counts across all 5 variants (+ 2 naive baselines)
| Variant / baseline | Method | Colours | Off-palette | Stone relit (f0) | Diff over 12f |
|---|---|---|---|---|---|
| unlit stone (naive 1) | Orb pasted on empty f0 | 18 | 0 | 0 / 502 (0.0%) | misses 492 / 8,037 (6.1%) |
| orb-only violet (naive 2) | Orb swapped, stone stuck blue | 22 (+4) | 0 | 41 px wrong blue | 487 / 8,037 wrong (6.1%) |
| orb-only green (naive 2) | Orb swapped, stone stuck blue | 19 (+4) | 0 | 41 px wrong blue | 487 / 8,037 wrong (6.1%) |
| idle (blue, 12f) | default glow0..3 (b0..b3) | 18 | 0 | 41 / 502 (8.2%) | baseline |
| idle-violet (12f) | swap("glow", "v") (v0..v3) | 18 | 0 | 41 / 502 (8.2%) | 1,981 / 8,037 swapped (24.6%) |
| idle-green (12f) | swap("glow", "e") (e0..e3) | 15 (moss) | 0 | 41 / 502 (8.2%) | 1,981 / 8,037 swapped (24.6%) |
| take (8f one-shot) | KEYS (rune, pool) -> empty f0 | 18 | 0 | 41 -> 29 -> 21 -> 9 -> 0 | f7 == empty f0 (0 diff) |
| empty (8f loop) | bare stone + residual glint | 13 (f0) / 18 | 0 | 0 / 502 (f0) | 502 opaque pedestal px |
| All 5 shipped variants | MASTER 32-colour union | 23 / 32 | 0 | 461 stone/brass/moss intact | 0 new colours |
take (8f one-shot) — per-frame stone decay progression (orb_pedestal.js L184–193)
| Frame | KEYS (rune, pool) | Far wall | Socket pool | Shaft rune | Total stone lit | Stage |
|---|---|---|---|---|---|---|
| f0 | rune: 1, pool: 2 | 12 px | 20 px | 9 px | 41 / 502 | Idle start |
| f1 | rune: 3, pool: 3 | 12 px | 20 px | 9 px | 41 / 502 | Orb flare (+4 sparkles) |
| f2 | rune: 3, pool: 3 | 12 px | 20 px | 9 px | 41 / 502 | Lift + brighter |
| f3 | rune: 2, pool: 2 | 12 px | 20 px | 9 px | 41 / 502 | High, shrinking |
| f4 | rune: 1, pool: 1 | 0 px | 20 px | 9 px | 29 / 502 | Streak — far wall drops (pool < 2) |
| f5 | rune: 0, pool: 0 | 0 px | 12 px | 9 px | 21 / 502 | Burst — outer 8 pool px drop to n0 |
| f6 | rune: 0, pool: -1 | 0 px | 0 px | 9 px | 9 / 502 | Fading — only rune ember remains |
| f7 | drawEmpty(g, 0) | 0 px | 0 px | 0 px | 0 / 502 | Bare stone == empty f0 (0 diff px) |
Exact counts measured across shipped 32×48 Orb Pedestal sheets (Arcane Curiosities Vol.2 — Dungeon Mechanisms) and the two naive baselines. Every shipped variant stays strictly inside the 32-colour MASTER palette (0 off-palette).
One shared glow0..3 ramp across orb, socket, rune, and variants
Line 14 of orb_pedestal.js defines GL = ["glow0", "glow1", "glow2", "glow3"], and line 15 defines up(k, n) so pushing past step 3 promotes cleanly into shared neutral cream n5—used for the orb's flare levels and the white-hot rune center on peak breathing frames without adding a fifth glow colour.
Both stone lighting helpers take an integer intensity argument and fall back to bare stone when negative. In rune(g, lvl) (lines 58–67), lvl < 0 draws the 9-pixel channel in neutral shadow stone n0/n1, lvl === 0 keeps a dim glow0 channel with a single glow1 ember at (15, 30), and lvl >= 2 promotes (15, 30) via up(lvl, 1). In socket(g, pool) (lines 95–110), the far inner wall (ny < -0.3 && Math.abs(nx) < 0.4) catches glow1 only while pool >= 2, and the shallow pool attenuates by 1 step near its left and right edges (Math.abs(nx) > 0.45) before falling back to n0 when k < 0.
Inside OrbPedestal (lines 173–194), the idle loop ties the stone bounce directly to the orb's 1-pixel vertical bob: bob = Math.round(0.5 - 0.5 * Math.cos(TAU * t)), breathe = bob ? 3 : 2. When the orb dips 1 pixel closer to the dish, the pool brightens from step 2 to step 3 and the rune pulses up to level 3. In take, KEYS steps rune and pool down frame by frame until frame 7 delegates to drawEmpty(g, 0). Finally, lines 238–239 generate idle-violet and idle-green with one swap("glow", ...) call each—relighting orb, motes, dish wall, socket pool, and carved rune together while leaving all 461 stone, brass, moss, and ink pixels fixed.
orb_pedestal.js lines 14–15: shared semantic glow ramp GL and up(k, n) helper that promotes overflow past glow3 into shared cream n5.
const GL = ["glow0", "glow1", "glow2", "glow3"];const up = (k, n) => (k + n > 3 ? "n5" : GL[Math.max(0, k + n)]);orb_pedestal.js lines 58–67 & 95–110: rune() (9 px) and socket() (12 px far wall + 20 px pool) draw through GL when lit and fall back to neutral stone n0/n1 when dark.
function rune(g, lvl) { // a carved channel down the column's face; its light is the orb's (lvl -1 = dead) g.part("rune", () => { const c = lvl < 0 ? "n0" : GL[Math.min(3, lvl)], d = lvl < 0 ? "n1" : GL[Math.max(0, lvl - 1)]; g.line([15, 28], [15, 32], c); g.pixel(14, 29, d); g.pixel(16, 29, d); g.pixel(14, 31, d); g.pixel(16, 31, d); if (lvl >= 2) g.pixel(15, 30, up(lvl, 1)); if (lvl === 0) g.pixel(15, 30, "glow1"); // a last ember of light in the cut });}⋯function socket(g, pool) { // the hollow of the dish; pool = light level of the orb reflected in it (-1 = dark) const cy = DISH.cy - 0.3, rx = DISH.irx, ry = DISH.iry; g.part("socket", () => g.field({ x: [CX - rx, CX + rx - 1], y: [Math.floor(cy - ry), Math.ceil(cy + ry)] }, (x, y) => { const nx = (x + 0.5 - CX) / rx, ny = (y + 0.5 - cy) / ry; const r = nx * nx + ny * ny; if (r > 1) return null; if (ny < -0.3 || r > 0.75) { // inner wall; right side lit if (pool >= 2 && ny < -0.3 && Math.abs(nx) < 0.4) return "glow1"; // orb light on the far wall return nx > 0.45 ? "n2" : nx > -0.2 ? "n1" : "n0"; } if (pool < 0) return "n0"; const k = pool - (Math.abs(nx) > 0.45 ? 1 : 0); return k < 0 ? "n0" : GL[Math.min(3, k)]; }));}orb_pedestal.js lines 173–194 & 234–240: idle couples stone breathing to the 1-px orb bob; take steps KEYS down to empty f0; variants swap glow0..3 in one line to relight both orb and stone.
if (state === "idle") { const bob = Math.round(0.5 - 0.5 * Math.cos(TAU * t)); const breathe = bob ? 3 : 2; pedestal(g, { rune: 2 + (t > 0.3 && t < 0.7 ? 1 : 0) - (t < 0.1 || t > 0.9 ? 1 : 0), pool: breathe }); orb(g, CX, ORB_Y + bob, ORB_R, t, 0); motes(g, t, 3); return; } if (state === "take") { const f = Math.min(N_TAKE - 1, Math.round(t * N_TAKE)); // f: 0 idle | 1 flare | 2 lift+brighter | 3 high, shrinking | 4 streak | 5 burst | 6 fading | 7 == empty f0 const KEYS = [ { rune: 1, pool: 2 }, { rune: 3, pool: 3 }, { rune: 3, pool: 3 }, { rune: 2, pool: 2 }, { rune: 1, pool: 1 }, { rune: 0, pool: 0 }, { rune: 0, pool: -1 }, ]; if (f === N_TAKE - 1) { drawEmpty(g, 0); return; } pedestal(g, KEYS[f]);⋯ variants: [ { name: "idle", args: ["idle"] }, { name: "take", args: ["take"], animate: { fps: 10, duration: N_TAKE / 10, loop: false } }, { name: "empty", args: ["empty"], animate: { fps: 10, duration: N_EMPTY / 10, loop: true } }, { name: "idle-violet", args: ["idle"], repalette: swap("glow", "v") }, { name: "idle-green", args: ["idle"], repalette: swap("glow", "e") }, ],Checklist for grounding emissive pixel-art objects
You do not need a soft alpha halo or dynamic shader to make a glowing pixel-art object feel anchored in its scene. Lighting just 8.2% of the pedestal (41 of 502 pixels) on the exact planes facing the orb does more to sell physical presence than any blurry bloom overlay.
When those bounce pixels share the emitter's semantic palette alias, every colour variant and every state transition stays coherent automatically.
- Light only the stone planes that physically face or channel the emitter (far dish wall 12 px, shallow socket pool 20 px, carved rune 9 px = 41/502 px), leaving side bevels, brass, moss, and ink untouched.
- Drive both the emitter and its bounce surfaces from one shared semantic alias ramp (glow0..3), never hardcoded hue keys—otherwise colour variants leave stale bounce pixels and bloat your palette (18 -> 22 colours).
- Couple bounce intensity to the emitter's motion: when the orb bobs 1 px closer to the dish, step the socket pool up by 1 ramp level (2 -> 3) and let the rune center peak at shared cream n5.
- In removal or shut-off animations, step bounce zones down in physical order (far wall -> outer pool -> inner pool -> rune ember -> 0 px) and end on an exact pixel match with the empty loop's frame 0.
Arcane Curiosities Vol.2 — Dungeon Mechanisms12 animated dungeon props · 32-colour palette · itch.io
Inspect orb_pedestal.js and Dungeon Mechanisms (Vol.2)
Orb Pedestal ships in Arcane Curiosities Vol.2 — Dungeon Mechanisms (12 animated dungeon props, 32-colour palette), and Tessarune includes all 72 Arcane Curiosities props with their full editable source files.