miwale

Blueprint — Game Art Style Spec

A living technical drawing: white line work, dimension lines and hatching on deep cyan-blue drafting paper with a fine grid.

Everything on screen is drawn like an engineer's drafting sheet. Deep cyan-blue paper with an 8-unit grid carries faint drawings at every scale — floor plans with hatched walls and door swings, gear details, hatched sections, north arrows, callout bubbles, spot heights and handwritten notes. On top of it, characters and props are crisp mechanical drawings in white and pale cyan: outlined tube limbs, 45° hatching for shade, graduated lines on cylinders, center marks on every circle and chain-dash center lines. A navy knock-out halo around each sprite lifts it off the busy paper. One amber "highlighter" accent marks friendly and collectible things, red pencil marks hostile eyes and corrections. Fold creases, coffee rings, eraser smudges, a sheet border with zone letters and a title block make the sheet feel handled and alive; effects are dashed trajectories, measurement callouts, rubber stamps and red-pencil cross-outs.

At a glance

FamilyLine art · Technical drawing
Moodprecise, clever, nerdy, calm, handmade
Best forengineering and building games, puzzle and logic games, factory / automation sims, machine tower defense, top-down arena action with crowded screens
RendererCanvas 2D, fully procedural, no image assets, no web fonts on the canvas
Pixel artNo – native resolution, sprites baked at 4–7 px per world unit
Complexity4/10 – new assets are line drawings of engineered primitives; the two-pass bake keeps them readable; the craft is in the drafting details
FontsBuilt-in single-stroke lettering (canvas), Share Tech Mono (HUD), Architects Daughter (handwritten notes)
Key colours#0e5088 paper · #f2faff ink · #a9dcf6 pale cyan · #062a4a navy halo · #1c6aa8 body fill · #ffcf4a amber · #ff5b4d red pencil

When to use it

Good fits:

Bad fits:

Color palette

SwatchHexRole
Blueprint paper#0e5088World base, ~70 % of the screen
Paper dark#0a4374Mottling low end
Paper light#16609cMottling high end; sun-faded patches mix towards rgb(32,106,162)
Grid / ground line#e2f4ffGrid (7.5 % minor, 17 % major) and all ground drawings at 12–55 % alpha
Ink white#f2faffCharacter outlines, lettering, projectile arrow
Pale cyan#a9dcf6Secondary lines, details, tab labels
Construction cyan#74b6deInner construction circles
Navy halo#062a4aKnock-out halo behind every sprite, shadows, HUD panels
Navy separation#072e52Thin line under each white outline
Body fill#1c6aa8Character bodies (lighter than the paper)
Back-limb fill#165b93Far limbs, back struts
Top face#2a7dbdUpper faces, joints, domes
Lens dark#08304fLenses, gauges, portholes, grilles
Prop line#d3ebfaScenery outlines
Prop fill#14598fScenery fills
Water#04284cCanal fill at 50 %
Road surface#0f538cBlank road strip (hides the grid)
Red pencil#ff5b4dCreature eyes, revision clouds, cross-outs, hurt marks, stamps
Amber highlighter#ffcf4aMain character helmet and pencil, collectibles, orbiting discs, approval stamp
Eraser pink#f3b6aeEraser crumbs, pencil eraser
Coffee#c4a060Coffee rings at 7–34 %

Palette rules:

Typography

FamilyUseNotes
Built-in single-stroke letteringEverything drawn on the canvas: dimensions, labels, floating numbers, title block, stamps, ground notesPolylines on a 4x6 grid, advance 5.7, uppercase only, round caps; italic = x-shear 0.2, "handwritten" = ±0.35 u vertex jitter
Share Tech Mono 400HUD numbers, labels, panel titles, card namesfont: 400 34px/1.1 'Share Tech Mono', monospace; letter-spacing: 4px; color: #f2faff; Titles add 10–14 px letter-spacing and uppercase
Architects Daughter 400Handwritten notes in the UI: card descriptions, hints, captionsfont: 400 16px/1.3 'Architects Daughter', cursive; color: #ffcf4a;

The canvas never uses web fonts, so lettering is identical in every mix and never pops in late. Line width of the stroke lettering is about 8 % of the cap height (0.42 u at 4.2 u caps on the ground, 0.8–1.0 u for floating numbers with a 2.4 u navy halo).

Rendering technique

Shared pipeline:

  1. init() picks the bake resolution K = clamp(ceil(screenScale * 1.6) + 1, 4, 7) px per world unit (screenScale = display height / 360) and bakes every sprite once.
  2. Two-pass sprite painting. Each part of a drawing is a path function. The back pass fills the path in navy #062a4a and strokes it lineWidth + 2.3 in navy, building one knock-out halo for the whole sprite. The main pass then fills (#1c6aa8 etc.), clips hatching into the shape, strokes a navy separation line (lineWidth + 0.85) and finally the white outline. Construction lines are main-pass only, so they float over the paper without a halo.
  3. Copies: a white silhouette (hit flash) for every frame, a red silhouette for main character frames. Facing is a negative-x transform at draw time – no mirrored copies.
  4. Ground is baked per 256-unit chunk by a generator (yields between ~12 phases) at up to 3 px per unit; everything is drawn in world coordinates so it lines up across chunks.
  5. Per frame: shadows (one drawImage each) → y-sorted props / creatures / main character (one drawImage each, plus a white flash at alpha = flash*1.2) → orbiting discs and projectiles (sprite + one dashed trail stroke) → vector particles → cached number sprites → a cached display overlay (sheet frame).

Draw order inside a character: construction center line → back limbs → body → head → accents → front limb. Inside a prop: annotations first, then the object.

World and ground

The world is an endless drafting sheet, built in this order:

  1. Paper base. An 8-unit colour grid (fbm(x/900) 85 % + noise(x/160) 15 %) ramps between #0a4374, #0e5088 and #16609c; slow sun-faded patches mix towards rgb(32,106,162) by up to 22 %. The small grid is upscaled with smoothing, sample centres aligned to world multiples of 8, so chunks match.
  2. Canals. A band of constant half-width 15 u around the zero line of perlin(x/760) + 0.3*perlin(x/260), using d = f / |grad f| as signed distance, intersected with a region mask (max(|d| - 15, -maskDistance)), so canals have square-cut ends. Filled #04284c at 50 % with a 2-unit soft edge, before the grid.
  3. Grid. 0.9 px lines every 8 u at rgba(205,236,255,.075), 1.15 px lines every 40 u at .17.
  4. Topographic contours in some regions (mask noise): marching squares on fbm(x/560) every 0.024; thin lines 0.32 u at 8.5–15 %, every fifth line 0.55 u at 14–26 %; skipped on water and roads.
  5. Roads. Band of half-width 8 u, filled #0f538c at 96 % (a blank strip that hides grid and contours).
  6. Paper grain over everything: a 256 px tileable tile (white/navy speckles, low-alpha fbm, 70 short curved fibres) used as a world-aligned pattern at 1/3 scale.
  7. Line work for bands. Canal bank 0.7 u at 55 %, outer line at +3.2 u (30 %), flow lines at −6 and −12 u drawn on every other lattice cell (reads as dashed), comb hachures on the land side (2.2 / 4.2 u alternating, 30 %), small wave marks (two quadratic arcs, 6 u) every ~22 u inside. Road edges 0.7 u at 48 %, curb lines at +2.2 u, dashed centre line.
  8. Drawings at three scales (all #e2f4ff):
    • long construction lines across the sheet (700-unit cells, 70 %, 0.3 u at 12 %, some chain-dashed);
    • big drawings (440-unit cells, 85 %, alpha factor 0.75–1): floor plans (walls 4 u thick with 45° hatching at 30 %, outlines 0.5 u at 55 %, windows as two glass lines, doors as leaf + quarter-circle swing, column grid with lettered bubbles, overall dimensions in mm, room labels like LAB 07 with area 18.2 M²), gear details (toothed outline, chain-dash pitch circle and center lines, bore with keyway, bolt circle with center marks, diameter dimension, DETAIL C SCALE 2:1), hatched L/T sections with a hole and SECTION A-A double-underlined, north arrows with scale bars, detail callout bubbles with a dashed boundary circle;
    • mid-size parts (180-unit cells, 62 %): plate with 4 holes + 4X Ø4.8, bolt elevation with thread hatch and M5X32, angle measure with arc and degrees, isometric box with dashed hidden edges, circle with radius callout, dimension chain;
    • small notes (150-unit cells): spot heights +12.40 with a cross, handwritten notes (VERIFY ON SITE, CHECK CLEARANCE, SEE DETAIL 3, … italic, jittered, 42 % white or 62 % red, often with a curved leader arrow), registration crosses.
  9. Red pencil (560-unit cells, 60 %): revision clouds (scalloped ellipse, 0.6 u at 55 %) with a delta triangle and letter, circled question marks, check marks with OK, strike-throughs with an arrow.
  10. Handling marks. Eraser smudges (soft radial rgba(160,212,245,.075) + a ghost line), fold creases every 1024 u in x and 768 u in y (10-unit band: 7 % highlight, 22 % navy shadow, a 0.5 u highlight line), coffee rings (#c4a060: main ring 2 u at 34 %, inner ring 16 %, partial ring 22 %, 7 % fill, an optional drip).

Three fixed landmark drawings near the start point (a gear detail, a floor plan, a section) and one coffee ring make the first view composed. Scenery and big drawings avoid canals and roads.

Characters

All characters share the two-pass bake, body fill #1c6aa8, back limbs #165b93, top faces #2a7dbd, lenses #08304f, white outlines 0.95–1.15 u, tube limbs (navy halo, 0.55 u white rim, blue core), hatching on the lower-right, and center marks on round parts.

Main character – engineer robot (~15 u wide body, ~32 u to the helmet top, ~36 u to the antenna ball; drawn at 0.92 scale):

Small creature – cog crawler (~20 x 22 u): a gear body (9, 8 or 11 teeth, root r ~6.2, tip r ~8) centred 10.8 u above the ground, with a chain-dash pitch circle, a dark hub r 2.9, a red eye r 1.65 with a white glint, two angry brow strokes, two feelers with balls and four jointed legs (back pair darker). Three variants (tooth count, spokes, slit pupil). Six frames per gait cycle turn the gear exactly one tooth pitch.

Fast creature – survey drone (~24 x 20 u, drawn at 0.8 scale, hovering 5 u up): a capsule body 12.4 x 6.2 u with a lighter dome, a dashed equator line, a red lens r 1.75 with a brow, two struts to rotor hubs, rotor discs as dashed ellipses (5.4 x 1.15 u) with one blade line whose length follows cos(phase), skids, dashed downwash lines and an amber plumb bob on a dashed line. Four rotor frames; tilts with its velocity.

Large creature – boiler walker (~42 x 60 u): a vertical cylinder r 14 from y −45 to −19.5 with elliptical caps (ry 3.4), graduated vertical shading lines (x = 14*cos(theta), theta 0.12–1.05 step 0.13), a dashed inner ring on the top face, a riveted seam, two portholes (r 2.9 / 2.6) with red pupils and heavy brow strokes, a grille mouth, a small name plate, a smoke stack puffing three dashed circles, clamp arms (3 u tubes with C-clamps) and piston legs (4.4 u tubes, knee discs with center marks, trapezoid foot plates with bolts). A live callout leader with Ø28 is drawn beside it (opposite its facing) so the lettering never mirrors.

States:

Props

Elevation drawings with the same bake, but dimmer: outline #d3ebfa 0.85 u, halo 1.9 u, fill #14598f, details in pale cyan, and at least one annotation each.

Placement: one candidate per 92-unit cell, 34 % kept, weighted tree 24 %, rock 18 %, crate 14 %, valve 9 %, lamp 9 %, theodolite 9 %, tank 9 %, tower 8 %; never on water or roads, none within 90 u of the start. Only tree, rock and lamp are mirrored (the others carry lettering).

Effects and particles

Atmosphere and lighting

UI

The HUD is drawing-sheet furniture:

.hud-panel { position: relative; padding: 7px 14px 7px 8px; background: rgba(6,42,74,.84); border: 1.5px solid #dff3ff; font: 400 15px 'Share Tech Mono', monospace; color: #f2faff; }
.hud-panel::before { content: 'FIG. 1'; position: absolute; top: -9px; left: 8px; padding: 0 5px; font: 400 10px/16px 'Share Tech Mono', monospace; letter-spacing: 2px; color: #a9dcf6; background: #0b4475; border: 1px solid rgba(223,243,255,.55); }
.bar { position: relative; width: 230px; height: 16px; border: 1.5px solid #dff3ff; background: rgba(3,26,48,.85); }
.bar::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(223,243,255,.5) 22px 23px); }
.bar-fill { height: 100%; background: repeating-linear-gradient(45deg, rgba(236,248,255,.95) 0 1.6px, transparent 1.6px 4.6px), rgba(236,248,255,.14); border-right: 2px solid #f2faff; }
.stamp { display: inline-block; padding: 3px 16px; color: #ff6b5c; font: 400 26px 'Share Tech Mono', monospace; border: 2.5px solid #ff6b5c; border-radius: 5px; outline: 1px solid rgba(255,107,92,.55); outline-offset: 3px; transform: rotate(-2.5deg); }

Motion and animation

Do and don't

Do:

Don't:

Implementation recipe

  1. Fill the background with #0e5088; add a smoothly upscaled mottling grid and a world-aligned grain pattern.
  2. Draw the grid: 8-unit minor lines at 7.5 %, 40-unit major lines at 17 %.
  3. Add bands (canals, roads) as signed-distance bands from noise fields; mask-fill them, then contour the banks with marching squares.
  4. Scatter faint drawings at three scales (big plans and gear details, mid-size parts, small notes) plus red-pencil corrections, creases and coffee rings – deterministic per world cell so chunks match.
  5. Build the drafting toolkit: stroke lettering, dimLine(), centerMark(), hatchLines(), arrowHead().
  6. Write each subject as path functions and paint them through shp() / tube() / ln() / con() so the same code produces the navy back pass and the main pass.
  7. Bake frames: main character 4 idle + 8 walk + 1 dash, creatures 4–6 frames each; add white (and for the main character red) silhouette copies.
  8. Draw per frame: ground-line shadows, y-sorted sprites with a mirrored transform for facing, flash overlays, dashed trails, vector particles.
  9. Implement draft-in (crop from the feet up) and erase (wipe + red X) directly in the creature draw.
  10. Cache the sheet frame and title block per screen size; skin the HUD with title-block cells, hatched bars and rubber stamps.

Code

Two-pass painting helpers – one path function, two passes:

let PASS = 'main';
const NAVY = '#062a4a', SEP = '#072e52', INK = '#f2faff', HALO = 2.3;
function shp(c, path, o) {           // filled part with outline (+ optional hatching)
  const lw = o.lw === undefined ? 1 : o.lw;
  if (PASS === 'back') { path(c); c.fillStyle = NAVY; c.fill(); c.lineWidth = lw + HALO; c.strokeStyle = NAVY; c.stroke(); return; }
  path(c); if (o.fill) { c.fillStyle = o.fill; c.fill(); }
  if (o.hatch) {                     // 45° hatching clipped to the shape and a sub-rectangle
    const r = o.hatch; c.save(); path(c); c.clip(); c.beginPath(); c.rect(r[0], r[1], r[2] - r[0], r[3] - r[1]); c.clip();
    c.beginPath(); for (let k = -60; k <= 60; k += 1.2) { c.moveTo(r[0] + k, r[1]); c.lineTo(r[0] + k + 60, r[1] + 60); }
    c.lineWidth = 0.32; c.strokeStyle = 'rgba(226,244,255,0.5)'; c.stroke(); c.restore();
  }
  path(c); c.lineWidth = lw + 0.85; c.strokeStyle = SEP; c.stroke();
  c.lineWidth = lw; c.strokeStyle = o.col || INK; c.stroke();
}
function tube(c, path, w, core) {    // outlined limb
  if (PASS === 'back') { path(c); c.lineWidth = w + HALO; c.strokeStyle = NAVY; c.stroke(); return; }
  path(c); c.lineWidth = w + 0.85; c.strokeStyle = SEP; c.stroke();
  c.lineWidth = w; c.strokeStyle = INK; c.stroke();
  c.lineWidth = w - 1.1; c.strokeStyle = core || '#1c6aa8'; c.stroke();
}
function bake(w, h, K, ox, oy, draw) { // ox/oy: anchor in world units inside the box
  const cv = document.createElement('canvas'); cv.width = w * K; cv.height = h * K;
  const c = cv.getContext('2d'); c.lineCap = c.lineJoin = 'round';
  for (const p of ['back', 'main']) { PASS = p; c.setTransform(K, 0, 0, K, ox * K, oy * K); draw(c); }
  PASS = 'main'; return cv;
}

Drafting primitives – center mark, dimension line, single-stroke lettering:

function centerMark(c, x, y, r, ext) {
  const k = Math.min(1.2, r * 0.35);
  c.moveTo(x - k, y); c.lineTo(x + k, y); c.moveTo(x, y - k); c.lineTo(x, y + k);
  c.moveTo(x - r - ext, y); c.lineTo(x - r + 0.6, y); c.moveTo(x + r - 0.6, y); c.lineTo(x + r + ext, y);
  c.moveTo(x, y - r - ext); c.lineTo(x, y - r + 0.6); c.moveTo(x, y + r - 0.6); c.lineTo(x, y + r + ext);
}
const GLYPH = { '0': [[1,0,3,0,4,1,4,5,3,6,1,6,0,5,0,1,1,0]], '1': [[1,1.2,2.2,0,2.2,6],[1,6,3.4,6]], A: [[0,6,2,0,4,6],[0.7,4,3.3,4]] /* … */ };
function text(c, s, x, y, h) {       // baseline at y, left aligned; uppercase polylines on a 4x6 grid
  const k = h / 6;
  for (const ch of s.toUpperCase()) {
    for (const p of GLYPH[ch] || []) for (let j = 0; j < p.length; j += 2) (j ? c.lineTo : c.moveTo).call(c, x + p[j] * k, y - h + p[j + 1] * k);
    x += 5.7 * k;
  }
}
function dimLine(c, x1, y1, x2, y2, off, label, col) {
  const L = Math.hypot(x2 - x1, y2 - y1), nx = (y2 - y1) / L, ny = -(x2 - x1) / L, ux = -ny, uy = nx;
  const ax = x1 + nx * off, ay = y1 + ny * off, bx = x2 + nx * off, by = y2 + ny * off;
  c.beginPath(); c.moveTo(x1 + nx * 1.5, y1 + ny * 1.5); c.lineTo(ax + nx * 2, ay + ny * 2);
  c.moveTo(x2 + nx * 1.5, y2 + ny * 1.5); c.lineTo(bx + nx * 2, by + ny * 2); c.moveTo(ax, ay); c.lineTo(bx, by);
  c.strokeStyle = col; c.lineWidth = 0.35; c.stroke();
  c.beginPath();
  for (const [px, py, s] of [[ax, ay, -1], [bx, by, 1]]) { c.moveTo(px, py); c.lineTo(px - ux * s * 3 + nx, py - uy * s * 3 + ny); c.lineTo(px - ux * s * 3 - nx, py - uy * s * 3 - ny); c.closePath(); }
  c.fillStyle = col; c.fill();
  c.save(); c.translate((ax + bx) / 2, (ay + by) / 2); c.rotate(Math.atan2(y2 - y1, x2 - x1));
  c.beginPath(); text(c, label, -label.length * 2.6 * 0.75, -0.6, 4.5); c.lineWidth = 0.4; c.stroke(); c.restore();
}

Signed-distance band for canals and roads (constant width, square ends):

// f = band field (perlin), m = region mask (noise - 0.5); both evaluated on a 4-unit lattice
function bandValue(f, gradF, m, gradM, halfWidth) {
  const d = f / Math.max(1e-6, gradF);     // approx. distance to the zero line of f
  const md = m / Math.max(1e-6, gradM);    // approx. distance into the mask region
  return Math.max(Math.abs(d) - halfWidth, -md); // < 0 inside the band
}
// fill: alpha = clamp(0.5 - v / 2, 0, 1) per mask pixel; banks: marching squares at v = 0, +3.2, -6, -12

Graduated cylinder shading and the erase effect:

function cylinderShade(c, cx, r, y0, y1) {   // call inside a clip of the cylinder outline
  c.beginPath();
  for (let th = 0.12; th <= 1.05; th += 0.13) { const x = cx + r * Math.cos(th); c.moveTo(x, y0); c.lineTo(x, y1); }
  c.lineWidth = 0.34; c.strokeStyle = 'rgba(226,244,255,0.5)'; c.stroke();
}
function drawErased(ctx, sprite, x, y, scale, q, cx, cy, R) { // q = 0..1 over 0.35 s
  const wipe = Math.min(1, q * 1.25), w = sprite.width, h = sprite.height, k = scale;
  if (wipe < 1) { ctx.globalAlpha = 1 - q * 0.5; ctx.drawImage(sprite, wipe * w, 0, (1 - wipe) * w, h, x - w * k / 2 + wipe * w * k, y - h * k, (1 - wipe) * w * k, h * k); }
  const k1 = Math.min(1, q / 0.4), k2 = Math.max(0, Math.min(1, (q - 0.3) / 0.4));
  ctx.globalAlpha = q > 0.8 ? (1 - q) / 0.2 : 1; ctx.beginPath();
  ctx.moveTo(cx - R, cy - R); ctx.lineTo(cx - R + 2 * R * k1, cy - R + 2 * R * k1);
  if (k2 > 0) { ctx.moveTo(cx + R, cy - R); ctx.lineTo(cx + R - 2 * R * k2, cy - R + 2 * R * k2); }
  ctx.lineWidth = 2.6; ctx.strokeStyle = 'rgba(6,42,74,0.7)'; ctx.stroke();
  ctx.lineWidth = 1.2; ctx.strokeStyle = '#ff5b4d'; ctx.stroke(); ctx.globalAlpha = 1;
}

Adapting it to your project

Performance notes

Copy-paste prompt

Use the "Blueprint" art style for my project: a living technical drawing.
- Background: deep cyan-blue drafting paper #0e5088 with subtle mottling (#0a4374..#16609c), paper grain,
  a fine grid (8-unit lines at 7.5 % white, 40-unit lines at 17 %), fold creases and faint coffee rings.
- The ground carries faint white drawings (12-55 % alpha): floor plans with hatched walls and door swings,
  gear details with center lines, hatched sections, north arrows, dimension chains, handwritten notes,
  red-pencil revision clouds. Canals/roads are constant-width bands with crisp banks and hachures.
- Characters and props are mechanical drawings: white outlines #f2faff (~1 unit), blue fills #1c6aa8,
  outlined tube limbs, 45° hatching on the lower-right, graduated lines on cylinders, center marks on circles,
  chain-dash center lines. Every sprite has a navy #062a4a knock-out halo ~1.1 units wide so it pops.
- Exactly two accents: amber #ffcf4a for friendly things and collectibles, red pencil #ff5b4d for hostile eyes
  and corrections. No black lines, no glow, no gradients on forms.
- Lettering: single-stroke technical capitals (stroke font), dimension lines with filled arrowheads.
- Effects: dashed trajectories, measurement callouts, construction circles, eraser crumbs, red-pencil X
  cross-outs, an APPROVED rubber stamp. Shadows are ground lines with hatch ticks over a soft navy pool.
- Frame the screen like a drawing sheet: border with zone letters, title block (SHEET 04, REV B).
- UI: title-block cells with 1.5 px pale borders, hatched bars, red rubber-stamp counters,
  Share Tech Mono + Architects Daughter.