miwale

Thermal Vision — Game Art Style Spec

The world through an infrared camera: every surface is a temperature mapped through an ironbow ramp; warm bodies glow white-hot.

Nothing in this style is painted in colour. Every pixel – ground, props, creatures, particles, even the icons – is first a temperature between 0 and 1 and only then pushed through one false-colour ramp, the classic "ironbow": black → deep indigo → violet → magenta → crimson → orange → yellow → white. Cold ground and tree canopies sit in indigo and near-black, warm bodies glow orange with white-hot faces and cores, every body reads a little cooler at its rim and radiates a soft halo. A camera UI frames the image: corner brackets, a temperature scale bar, °C readouts, a blinking REC dot, a tracking box, sensor grain and heat shimmer. The result feels like surveillance footage of a night that is full of hidden life.

At a glance

FamilyInfrared · False colour
Moodsurveillance, nocturnal, tense, clinical, eerie
Best forstealth and infiltration, night hunting or rescue, sci-fi / military top-down shooters, horror about unseen creatures, drone-camera puzzles
RendererCanvas 2D, fully procedural, no image assets
Pixel artNo – native resolution; sprites baked at 4 px per world unit, ground chunks at up to 2.5 px/unit
Complexity4/10 – every asset is shapes filled with temperatures; the shared bake does the rest. The work is thinking in hot/cold contrast.
FontsShare Tech Mono (readouts), Orbitron (titles, labels), Chakra Petch (card titles)
Key colours#1d0b52 indigo ground · #64108a purple · #c4256a crimson · #f4701a orange · #fdc52e yellow · #fffdf2 white-hot · #eef3ff camera white

When to use it

Good fits:

Bad fits:

Color palette

The palette is the ramp. Each swatch is a stop of the ironbow LUT; subjects never pick a colour, they pick a temperature.

SwatchHexRole
Absolute cold (0.00)#030108Deepest shadows, text outline base
Deep cold (0.08)#0d0626Tree canopies, hedgerows, cold puddles
Indigo ground (0.18)#1d0b52Open soil, ground fallback colour (~45 % of the screen)
Violet (0.28)#3a0f78Warmer soil, stubble fields, cold metal
Purple (0.38)#64108aRoad asphalt, dry-stone walls, rocks with stored warmth
Magenta (0.48)#96158aHalos, insulated clothing edges, warm metal
Crimson (0.57)#c4256aCool rims of warm bodies, cooling particles
Red-orange (0.65)#e3443aOuter body zones; REC dot and hot-spot marker in the UI
Orange (0.73)#f4701aBodies, hot pipes
Amber (0.81)#fb9d12Warm cores, flanges, card hover
Yellow (0.88)#fdc52eHot cores, eyes; UI accent labels
Pale yellow (0.94)#ffe777Near white-hot, floating digits
White-hot (1.00)#fffdf2Faces, furnace cores, flame centres, impact flash
Camera white#eef3ffEvery overlay line, bracket, readout and HUD border
HUD panel#05030cPanel and label backgrounds
Card lavender#c7b8f2Card body text

The LUT has 256 entries but is quantised to 72 bands, so smooth gradients show the faint contour banding of an 8-bit sensor.

Temperature budget (what goes where):

RangeSubjects
0.03 – 0.14Water, tree canopies, hedgerows, fence posts
0.12 – 0.30Open ground, fields, shoulders
0.30 – 0.46Road asphalt, stone walls, rocks, contact pools under props
0.45 – 0.65Warm metal, insulated clothing, body rims, halos
0.50 – 0.85Bodies, limbs, hot pipes
0.90 – 1.00Faces, eyes, furnace cores, flame centres, flanges, embers

Palette rules:

Typography

FontWeightsRoleCSS
Share Tech Mono400All readouts: °C, timer, counters, bar labels, timestamp, card text, floating digitsfont: 400 16px 'Share Tech Mono', monospace; color: #eef3ff; letter-spacing: 1px; text-shadow: 0 0 2px #000, 0 1px 3px #000;
Orbitron500 / 700 / 900Big titles with ramp-gradient fill; tiny spaced labels (9–10 px, letter-spacing 3–5 px, #fdc52e)font: 900 50px/1 'Orbitron', sans-serif; letter-spacing: .16em; text-transform: uppercase; background: linear-gradient(180deg,#fffdf2 8%,#ffe777 30%,#fb9d12 52%,#e3443a 72%,#96158a 96%); -webkit-background-clip: text; color: transparent;
Chakra Petch400 / 600 / 700Card titles, name platesfont: 600 18px 'Chakra Petch', sans-serif; text-transform: uppercase; letter-spacing: 1.5px; color: #fffdf2;

All fonts are on Google Fonts. Text drawn into the canvas (scale labels, REC, timestamps, spot meter, tracking label) is Share Tech Mono in camera white with a dark rgba(2,0,8,.8) outline 0.22 × the font size wide, rendered once into a small bitmap and reused. Floating digits are Share Tech Mono baked into a digit atlas, pale yellow #ffe777 with an orange #f4701a glow (white-hot #fffdf2 with a red-orange glow for emphasis) and always end with a small ° glyph.

Rendering technique

One idea drives everything: render temperature first, map to colour last.

  1. Paint temperature. Shapes are drawn on an offscreen canvas in grayscale: the gray value is the temperature (0–1), alpha is coverage. Gradients are temperature gradients (warm core → cooler edge). Semi-transparent gray over gray simply mixes temperatures.
  2. Heat pipeline (once per sprite, JS): read the pixels, build premultiplied buffers (A, T·A), and box-blur them three times (≈ gaussian):
    • Diffusion: blur radius 0.55 u; the painted temperature is mixed 50 % towards the blurred one, so heat bleeds softly across part boundaries.
    • Limb cooling: with a 1.5 u blur of coverage Ah, every covered pixel is multiplied by 1 − 0.42 × (1 − min(1, Ah × 1.3)). Rims read up to 42 % cooler – real physics (grazing angle) that gives free volume and separates neighbours.
    • Halo: outside the silhouette the blurred temperature × 0.6 is shown with alpha min(1, Ah × 1.7) × 0.62 × smoothstep(0.36, 0.8, T) – only warm things glow.
  3. Map through the 72-band LUT into RGBA. Variants are other transfer functions on the same temperature map: flash t + (1 − t) × 0.86 (halo × 1.3), cooled 0.1 + 0.34 t (halo × 0.25), afterimage 0.74 t (halo × 0.6). Facings are mirrored copies.
  4. Ground is a temperature field computed in JS per 256-unit chunk (see World), stamped with decals and mapped through the same LUT, inside a generator that yields ~80 times per chunk.
  5. Per frame: ground chunks → residual-heat imprints → collectibles → contact glows and footprints → y-sorted props and actors → orbiting orbs → projectiles → particles → floating digits → tracking box → (screen) heat shimmer, auto-gain wash, sensor grain → (display) cached camera overlay + live readouts.

Sprites are baked at K = 4 px per world unit (the screen is 360 units tall). The renderer draws at native resolution; ground chunks render at up to 2.5 px/unit with smoothing, which keeps the soft, slightly blurry thermal feel.

World and ground

A night-time patchwork landscape seen from above, as a temperature field.

Raw fields (sampled every 4 units, bilinear-interpolated):

Per pixel (crisp thresholds on the interpolated fields):

Decals stamped into the temperature buffer before mapping (deterministic per world cell, seamless across chunks):

A screen typically shows 2–4 fields, a road and a hedgerow or two; the overall impression is indigo and violet with purple roads and black tree lines.

Characters

All characters are heat signatures, painted facing right and mirrored for the left.

Main character – the explorer (~14 u wide, ~30 u tall, feet at the anchor):

Small creature – quilled critter (~27 × 17 u): horizontal body ellipse 8.2 × 5.3, radial 0.82 at the chest → 0.57; a ridge of 8 quills along the back at 0.46 (cooler keratin = dark spikes on top); head r 3.9 (0.84 → 0.66), snout 0.72, cold nose 0.55, ears 0.7 / 0.8, eye 1.0; four 1.7 u legs (near 0.55, far 0.46); tail 0.56 → 0.3.

Fast creature – wisp (~12 × 24 u, hovering 3 ± 1.5 u): a flame silhouette (round bottom r 5.7, flickering tongues to y −29), radial 1.0 → 0.96 → 0.8 → 0.6; two side tongues 0.74; two cold eye holes (0.36) and a small mouth (0.6). Halo 2.1 u at 85 %: wisps are the brightest subjects.

Large creature – the hulk (~42 × 50 u), seen from the front: wide-shouldered torso (radial 0.8 → 0.55), long arms hanging outside the body to warm fists on the ground (near 0.6, far 0.52; fists +0.08), short legs; nine cooler fur clumps along the shoulders (0.5); a white-hot furnace core in the chest (r 9, 1.0 → 0.98 → 0.88 fading) with five glowing fissures (0.92); a small head sunk between the shoulders with a heavy cooler brow, two white eyes and a hot mouth (0.98).

Rules: one white-hot focal point and one clearly cool part per subject; types differ by silhouette (upright, horizontal, flame, wide frontal), not by hue; far limbs 0.06–0.08 cooler; draw with source-over only – halos are baked.

Props

Cold shapes with residual warmth, baked through the same pipeline (halo 1.6 u at 55 %, limb cooling 0.38). Each prop bakes its own contact pool into the sprite.

PropConstruction
Pine tree5 jagged tiers, canopy 0.03 (tip) → 0.14 – colder than the ground, a near-black silhouette; trunk 0.38; a warm ground pool r 19 at 0.4 under it (the canopy blocks radiative cooling)
Dead treeRecursive branches (depth 4) at 0.08 + 0.045 × width; slightly warmer trunk base 0.29
RockLumpy dome, radial 0.46 (sun-warmed top) → 0.27, cold cracks 0.22; one variant carries a warm handprint (0.6)
FenceThree cold posts (0.13 → 0.19) with sagging wires (0.2); one variant has a small warm bird (0.9) on the middle post
Ember pitCoal bed 0.9 → 0.62, charred logs 0.5 with glowing ends 0.95, embers 0.92–1.0, a ring of 9 warm stones (0.36 / 0.42); 3 baked flicker frames
Steam pipe68-unit run on cold trestles (0.24), cylinder 0.72 top → 0.6 bottom, cooler insulated sleeves (0.5 → 0.44), hot flanges 0.84, valve wheel 0.76, legs diving into the ground
Exhaust ventStack 0.66 → 0.46, seams 0.58, hot rim 0.86, white-hot throat 1.0, rain hat 0.62; rising plume at runtime
TransformerBox 0.62 → 0.5 with alternating fins (0.48 / 0.6), cold concrete pad 0.22, three stacked bushings, one overheating connector 1.0 that flickers

Placement follows the world: pines and dead trees line the hedgerows, rocks and ember pits sit in dry stubble, fences dot the ploughed fields, the industrial set (pipe, vent, transformer) clusters within 48 units of a buried pipe; nothing stands on roads or water. Hot props register heat shimmer.

Effects and particles

All particles carry a start temperature t0 and cool as they age (their temperature is a fraction of t0 that drops with remaining life).

Puffs use 16 pre-baked radial sprites (one per temperature step); sparks and embers are single strokes in one of 64 cached ramp colours.

Atmosphere and lighting

The camera is the atmosphere.

UI

The HUD is the camera's own interface – a measuring instrument, not a game menu.

.hud-panel { padding: 6px 10px; background: linear-gradient(90deg, rgba(5,2,16,.78), rgba(5,2,16,.35)); border-left: 2px solid #eef3ff;
  font: 400 16px 'Share Tech Mono', monospace; color: #fffdf2; text-shadow: 0 0 2px #000, 0 1px 3px #000; }
.bar { position: relative; width: 236px; height: 12px; background: rgba(5,2,16,.85); border: 1px solid rgba(238,243,255,.8); }
.bar-fill { height: 100%; background: linear-gradient(90deg,#3a0f78,#96158a 22%,#e3443a 48%,#fb9d12 72%,#ffe777 92%,#fffdf2); }
.bar::after { content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(5,2,16,.9) calc(10% - 1px) 10%); }
.card { position: relative; padding: 22px 16px 18px; background: linear-gradient(180deg, rgba(29,11,82,.62), rgba(5,2,16,.94) 46%);
  border: 1px solid rgba(238,243,255,.28); }
.card-title { font: 600 18px 'Chakra Petch', sans-serif; text-transform: uppercase; letter-spacing: 1.5px; color: #fffdf2; }

Motion and animation

Do and don't

Do:

Don't:

Implementation recipe

  1. Build the ramp: 13 stops from #030108 to #fffdf2, a 256-entry LUT quantised to 72 bands, and 64 cached CSS colour strings for particles.
  2. Write the heat bake: paint grayscale on an offscreen canvas → getImageData → premultiplied buffers → 3x box blur (0.55 u and 1.5 u) → diffusion + limb cooling + hot-only halo → LUT → putImageData. Keep the temperature map so flash / cooled / afterimage variants are just re-mappings.
  3. Paint each subject as temperatures with its feet at the origin; leave ~3x the halo radius of margin; bake 8 animation frames and mirror them.
  4. Ground: per chunk, sample raw fields on a 4-unit grid, interpolate per pixel, apply crisp thresholds (hedges, walls, roads, water), add periodic fine noise, stamp decals, map through the LUT. Run it as a generator with short steps.
  5. Props: same bake, with a contact pool painted into the sprite; place them by world features.
  6. Particles: store t0, draw with col(t0 × f(life)); puffs from 16 pre-baked radial sprites.
  7. Atmosphere: contact glows, footprints, heat shimmer strip copies, grain pattern, cached vignette + camera overlay, cached text bitmaps for live readouts.
  8. HUD: camera-white 1 px borders, ramp-filled segmented bars, Share Tech Mono readouts, bracket-framed cards.

Code

The ramp and the LUT – everything is coloured by this one function:

const STOPS = [[0,'#030108'],[0.08,'#0d0626'],[0.18,'#1d0b52'],[0.28,'#3a0f78'],[0.38,'#64108a'],[0.48,'#96158a'],
  [0.57,'#c4256a'],[0.65,'#e3443a'],[0.73,'#f4701a'],[0.81,'#fb9d12'],[0.88,'#fdc52e'],[0.94,'#ffe777'],[1,'#fffdf2']]
  .map(([t, h]) => [t, [1, 3, 5].map((i) => parseInt(h.slice(i, i + 2), 16))]);
function ramp(t) {
  t = Math.min(1, Math.max(0, t));
  for (let i = 1; i < STOPS.length; i++) if (t <= STOPS[i][0]) {
    const [t0, a] = STOPS[i - 1], [t1, b] = STOPS[i], k = (t - t0) / (t1 - t0);
    return a.map((v, j) => v + (b[j] - v) * k);
  }
  return STOPS[STOPS.length - 1][1];
}
const BANDS = 72, LUT = new Uint8ClampedArray(256 * 3);
for (let i = 0; i < 256; i++) LUT.set(ramp(Math.round((i / 255) * (BANDS - 1)) / (BANDS - 1)), i * 3);
const gray = (t, a = 1) => { const v = Math.round(Math.min(1, Math.max(0, t)) * 255); return `rgba(${v},${v},${v},${a})`; };

The heat bake – paint temperatures, then diffusion, limb cooling, hot-only halo, LUT:

function blur3(src, w, h, r) { // 3 x separable box blur (zero outside)
  const tmp = new Float32Array(src.length), out = new Float32Array(src.length), iv = 1 / (2 * r + 1);
  let a = src;
  for (let p = 0; p < 3; p++) {
    for (let y = 0; y < h; y++) { let s = 0; for (let x = 0; x <= r && x < w; x++) s += a[y*w+x];
      for (let x = 0; x < w; x++) { tmp[y*w+x] = s * iv; if (x+r+1 < w) s += a[y*w+x+r+1]; if (x-r >= 0) s -= a[y*w+x-r]; } }
    for (let x = 0; x < w; x++) { let s = 0; for (let y = 0; y <= r && y < h; y++) s += tmp[y*w+x];
      for (let y = 0; y < h; y++) { out[y*w+x] = s * iv; if (y+r+1 < h) s += tmp[(y+r+1)*w+x]; if (y-r >= 0) s -= tmp[(y-r)*w+x]; } }
    a = out;
  }
  return out;
}
function bakeHeat(w, h, paint, K = 4, f = (t) => t) {
  const c = document.createElement('canvas'); c.width = w; c.height = h;
  const x = c.getContext('2d'); paint(x); // gray = temperature, alpha = coverage
  const d = x.getImageData(0, 0, w, h).data, N = w * h, A = new Float32Array(N), TA = new Float32Array(N);
  for (let i = 0; i < N; i++) { A[i] = d[i*4+3] / 255; TA[i] = d[i*4] / 255 * A[i]; }
  const Ad = blur3(A, w, h, Math.round(0.55 * K)), TAd = blur3(TA, w, h, Math.round(0.55 * K));
  const Ah = blur3(A, w, h, Math.round(1.5 * K)), TAh = blur3(TA, w, h, Math.round(1.5 * K));
  const img = x.createImageData(w, h), q = img.data, smooth = (a, b, v) => { const t = Math.min(1, Math.max(0, (v - a) / (b - a))); return t * t * (3 - 2 * t); };
  for (let i = 0; i < N; i++) {
    const a = A[i]; let t = 0;
    if (a > 0.003) { const t0 = TA[i] / a, tb = TAd[i] / Math.max(Ad[i], 1e-4); t = (t0 + (tb - t0) * 0.5) * (1 - 0.42 * (1 - Math.min(1, Ah[i] * 1.3))); }
    const th = TAh[i] / Math.max(Ah[i], 1e-4), ah = Math.min(1, Ah[i] * 1.7) * 0.62 * smooth(0.36, 0.8, th) * (1 - a), oa = a + ah;
    if (oa < 0.004) continue;
    const i1 = Math.round(Math.min(1, Math.max(0, f(t))) * 255) * 3, i2 = Math.round(Math.min(1, Math.max(0, f(th * 0.6))) * 255) * 3;
    for (let k = 0; k < 3; k++) q[i*4+k] = (LUT[i1+k] * a + LUT[i2+k] * ah) / oa;
    q[i*4+3] = Math.min(255, oa * 255);
  }
  x.putImageData(img, 0, 0);
  return c; // flash: f = t => t + (1 - t) * 0.86 · cooled: f = t => 0.1 + 0.34 * t · afterimage: f = t => 0.74 * t
}

Painting a subject – the main character's head, as temperatures:

function paintHead(c, K) {
  c.setTransform(K, 0, 0, K, 16 * K, 36 * K); // anchor = feet
  const radial = (x, y, r, t0, t1) => { const g = c.createRadialGradient(x, y, 0, x, y, r); g.addColorStop(0, gray(t0)); g.addColorStop(1, gray(t1)); return g; };
  c.beginPath(); c.rect(-8.8, -23.4, 5.6, 11.8); c.fillStyle = gray(0.27); c.fill();                  // cold backpack
  c.beginPath(); c.arc(0.6, -24.7, 5.5, 0, Math.PI * 2); c.fillStyle = radial(2.4, -24.4, 6.6, 0.7, 0.53); c.fill(); // hood
  c.beginPath(); c.ellipse(2.95, -24.3, 3.65, 4.15, 0, 0, Math.PI * 2); c.strokeStyle = gray(0.76); c.lineWidth = 1.35; c.stroke(); // fur ruff
  c.beginPath(); c.ellipse(3.05, -24.2, 2.75, 3.25, 0, 0, Math.PI * 2); c.fillStyle = radial(3, -24.8, 3.5, 1.0, 0.86); c.fill(); // white-hot face
  c.beginPath(); c.arc(5.25, -23.8, 0.7, 0, Math.PI * 2); c.fillStyle = gray(0.79); c.fill();          // cooler nose tip
}

Particles that cool while they age:

const COLS = Array.from({ length: 64 }, (_, i) => { const c = ramp(i / 63); return `rgb(${c[0]|0},${c[1]|0},${c[2]|0})`; });
const col = (t) => COLS[Math.max(0, Math.min(63, Math.round(t * 63)))];
function drawEmber(ctx, p) { // p: {x, y, z, vx, vy, vz, life, max, t0, size}
  const k = Math.max(0, p.life / p.max), t = p.t0 * (0.45 + 0.55 * k), vy = p.vy - p.vz, sp = Math.hypot(p.vx, vy) || 1;
  const L = Math.min(5, sp * 0.03) * (0.5 + 0.5 * k), y = p.y - p.z;
  ctx.globalAlpha = Math.min(1, k * 2.5); ctx.strokeStyle = col(t); ctx.lineWidth = p.size * 0.8; ctx.lineCap = 'round';
  ctx.beginPath(); ctx.moveTo(p.x, y); ctx.lineTo(p.x - p.vx / sp * L, y - vy / sp * L); ctx.stroke();
  ctx.globalAlpha = 1;
}

Adapting it to your project

Performance notes

Copy-paste prompt

Use the "Thermal Vision" art style for my project: the world as seen through an infrared camera.
Render everything as a TEMPERATURE first (0 = coldest .. 1 = hottest) and map it through one
ironbow false-colour ramp: #030108, #0d0626, #1d0b52, #3a0f78, #64108a, #96158a, #c4256a,
#e3443a, #f4701a, #fb9d12, #fdc52e, #ffe777, #fffdf2 (72 quantised bands for faint banding).
Ground stays cold (indigo/violet, max ~0.46): field patchwork with cold hedgerows, warm roads,
flat cold ponds, fading warm footprints. Trees and fences are colder than the ground (near-black).
Characters are heat signatures with one white-hot focal point (face, eye, furnace core) and one
cold part (backpack, quills, fur, eye holes). Bake each sprite once: paint grayscale temperatures,
blur for diffusion, cool the rims by up to 42 %, add a halo only around warm things, map via LUT.
Effects cool through the ramp as they age: white-hot pops, ember streaks, rising puffs, rings.
Atmosphere = the camera: warm contact glows instead of shadows, vignette, animated sensor grain,
heat shimmer above hot sources, corner brackets, a temperature scale bar, °C readouts, REC dot,
timestamp and a tracking box. UI: camera-white 1 px borders, square corners, ramp-filled bars,
Share Tech Mono readouts, Orbitron titles, Chakra Petch card titles. No other colours anywhere.