miwale

Linocut — Game Art Style Spec

A moving linocut print: cream paper, carbon-black key plate, one misregistered pumpkin-orange spot plate and a sparing teal.

Everything looks like a hand-pulled linocut or woodcut print come alive. Every shape is either solid black ink with white gouges carved out of it, or bare paper with black knife marks cut into the surrounding block. Lines never have constant width: each mark is a pointed "lens" or a "taper" with a blunt start and sharp tip, exactly like a V-gouge cut. Colour comes from one pumpkin-orange spot plate printed slightly off-register, so a sliver of paper shows along one edge, and a very sparing teal second spot. There are no gradients anywhere – tone is only line density, stipple and hatching. The module's cast – a cloaked main character with a round, lobed orange head and a carved face, root-bulb creatures with solid ink crowns, paper spirits and a towering ink giant – is just an example of how to apply it.

At a glance

FamilyPrintmaking · Linocut
Moodfolkloric, bold, graphic, eerie, handmade
Best fortop-down action, folk-horror and fairy-tale games, card/board games, narrative art
RendererCanvas 2D, procedural, no image assets
Pixel artNo – native resolution, sprites baked at 2–5 px per world unit
Complexity6/10 – every new figure needs white lines carved into black; dense groups blur to black
FontsRye, Alfa Slab One, Special Elite
Key colourspaper #f0e7d2, ink #1b1715, orange #ea6820, teal #2e7674

When to use it

Good fits:

Bad fits:

Color palette

SwatchHexRole
Paper#f0e7d2Ground, halos, carved highlights (~65%)
Ink#1b1715Key plate – outlines, solid masses, all marks (~30%)
Pumpkin Orange#ea6820The one spot plate – main character's head, glowing cores, lantern faces, collectibles, progress bar, large floating numbers (~4%)
Teal#2e7674Sparing second spot – frost stipple on the floating creature, core ring of the large creature, centre of the large collectible (<1%)
Paper Shade#e2d6baDarkest paper fibres (paper − 14)
Ink Deep#0d0b0aHard offset shadows on cards and panels

Palette rules:

Typography

Floating numbers (canvas): small = ink fill over a paper stroke of 0.3× font size (8.5 units tall); large = 11.5 units, paper stroke 0.36×, an ink copy offset by (MX, MY)·0.6, a thin ink outline, then orange fill – i.e. a two-plate print.

Rendering technique

  1. Init – K = clamp(round(screenH / 360 · 4) / 4, 2, 5) px per world unit. Build textures: the 512² paper fibre map FIB (Int8, −22…+14) and the 256² ink void map VOID.
  2. Carving toolkit (all marks are fills, see Code): lens(x0,y0,x1,y1,w,bend) – two quadratic curves meeting in points; taper – blunt round start, sharp tip; limb(pts,w0,w1) – Catmull-Rom spline with tapering width and round caps; smoothPath; crescent – shape minus a shrunken copy shifted to the light, filled even-odd (heavy shadow contour); holeSpot – cut hole showing a misregistered spot plate.
  3. Figure recipe: fill the form (paper or ink) → print the orange plate offset → clip and carve (black lenses on paper / white lenses on black) → crescent on the shadow side → thin ink outline 0.5–0.75 → carved face → top details (stem, leaf, teeth).
  4. Sprite bake mk: draw at K px/unit with feet at the anchor; paper halo – a paper-tinted silhouette drawn 12× around a 0.5–0.9-unit circle with destination-over; inkify – per pixel: dark pixels where VOID > 238 move 72% toward paper (pinholes), orange pixels get ×0.93–1.05 density and rare paper voids.
  5. Derived sprites: negative print (invert, luminance mapped paper↔ink, saturated pixels → ink) for flashes; shatter shards (4–5 wedges cut from the centre with jittered radial cuts, paper-coloured cut edges 0.7 units wide); orange-tinted copy of the main character for after-images.
  6. Variants: main character 4 walk + 2 idle poses × 2 carving variants (seeds 100 + v·7 + i) × 2 facings (drawn mirrored, the orange offset mirrors too); creatures 4 × 2 × 2.
  7. Ground chunks (256 units, ≤ 2.5 px/unit): generator; 84×84 field grid, distances via value/|gradient|, per-pixel analytic ink coverage a per region, then paper + fibre → mix toward ink by a with pinholes; then decals.
  8. Per frame: ground → splats → collectibles → hatched shadows → y-sorted props/creatures/main character → orbiting objects → projectiles → particles → floating numbers → ragged ink frame. Only drawImage of cached canvases; blit positions snapped to screen pixels.

World and ground

The ground is a carved print on fibrous paper: every region is a different cut pattern, separated from its neighbours by bare paper gutters.

Fields (world units): B = warped fbm(x/1000) (biome), D = fbm(x/300) + (B − 0.55)·0.6 (dark soil when D > 0.74), R = perlin(x/3400) warped (road where distance < 11). Biomes: B < 0.455 field, B > 0.565 forest, else meadow. All regions are separated by a 1.5-unit paper gutter – carved patterns stop short of the edge, like separately cut areas of the block.

Per-region carved pattern (analytic per pixel, coverage 0…1 anti-aliased with (halfwidth − distance)·res + 0.5):

Characters

All figures share one construction: a paper-filled form carved with black lenses plus a solid-ink form carved with white gouges, the orange plate on one focal element, a crescent shadow at the lower right, a thin 0.5–0.75 ink outline and a carved face. Every sprite gets a 0.9-unit paper halo so it separates from black ground and from other figures, and 2 carving variants that swap at 6 fps.

Main character, feet at (0,0), ~16 × 30 units, facing via scale(f,1):

Small creature (a root bulb on legs, ~16 × 28): root legs (limb 0.85 → 0.55 + two toe tapers), three leaves behind, smooth bulb; inside the clip a solid ink crown above a wavy line y = −12.4 + 0.45·sin(0.95x + 0.6), an engraved comb of 13 tapers hanging into the paper underside (getting longer to the right = shadow), white crown highlights, ink lenses on the lower right; carved paper lens eyes with ink pupils, a black grimace lens with two paper teeth; crescent + 0.7 outline; root hairs.

Floating creature (a paper spirit, ~15 × 24): paper body; teal stipple plate (230 candidate dots r 0.26–0.42, probability rising to the lower right) offset by (TX, TY); 4 ink shading lenses on the right; crescent; black eye/mouth ellipses; reaching tapered arms with 3 finger tapers; the tail dissolves into 3 shrinking ink dots. Hovers 2.2 units above its shadow.

Large creature (a towering root giant, ~37 × 57): solid ink body (18-point blob, narrowed top) with concentric white arc gouges on the upper left (6 arcs shrinking 14.4 → 2.9), white crack limbs from the core, a paper rim crescent on the lit edge, a teal ring + orange core in holes, a paper 4-point star and 10 carved rays; thick limbs 3.1 → 1.8 with root fingers; crown of 5 leaves.

Shadows under characters are hatched, never soft: horizontal ink lenses filling an ellipse (one per 0.75 units of height, half-width 0.33–0.45), shifted right (light from upper left). Main character 6.4 × 2.0, small creature 7.4 × 2.2, floating creature 4.6 × 1.4, large creature 16 × 4.

Props

Scenery is carved the same way as the characters: y-sorted sprites with a paper halo, a hatched lens shadow and grass tufts at every base. Light comes from the upper left, so white gouges sit on the lit side and crescents on the shadow side.

Effects and particles

Atmosphere and lighting

UI

:root { --paper:#f0e7d2; --ink:#1b1715; --org:#ea6820; --teal:#2e7674; }
.hud { font-family: 'Special Elite', 'Courier New', monospace; color: var(--ink); }
.progress { height: 20px; background: var(--paper); border: 3px solid var(--ink); border-radius: 2px; box-shadow: 4px 4px 0 var(--ink); }
.progress-fill { height: 100%; background: repeating-linear-gradient(-62deg, var(--org) 0 7px, var(--ink) 7px 8.5px);
  box-shadow: 3px 0 0 var(--ink); transition: width .15s steps(3); }
.status-bar { width: 230px; height: 22px; background: var(--paper); border: 3px solid var(--ink); border-radius: 2px; box-shadow: 4px 4px 0 var(--ink); }
.status-fill { height: 100%; background: repeating-linear-gradient(-62deg, var(--ink) 0 9px, var(--paper) 9px 10.5px); transition: width .12s steps(2); }
.bar-value { font: 400 17px 'Alfa Slab One', Georgia, serif;
  text-shadow: 2px 0 var(--paper), -2px 0 var(--paper), 0 2px var(--paper), 0 -2px var(--paper), 2px 2px var(--paper), -2px -2px var(--paper), 2px -2px var(--paper), -2px 2px var(--paper); }
.clock { background: var(--paper); border: 3px solid var(--ink); padding: 3px 22px 4px;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink), 7px 7px 0 6px var(--ink); }
.clock-time { font: 400 34px/1.05 'Rye', Georgia, serif; letter-spacing: 2px; text-shadow: 2px 2px 0 var(--org); }
.clock-label { font: 11px 'Special Elite', monospace; letter-spacing: 3px; border-top: 2px solid var(--ink); padding-top: 2px; }
.card { background: var(--paper); border: 3px solid var(--ink); border-radius: 9px;
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 8px var(--ink), 8px 8px 0 #0d0b0a; transition: transform .1s steps(2); }
.title { font: 400 72px 'Rye', Georgia, serif; letter-spacing: 3px; color: var(--paper); text-shadow: 5px 4px 0 var(--org); }
.alert .status-bar { filter: invert(1); }

Motion and animation

Do and don't

Do:

Don't:

Implementation recipe

  1. Camera in world units (360 visible vertically); clear to paper #f0e7d2.
  2. Copy the carving toolkit (lens, taper, spline, limb, smoothPath, crescent, holeSpot) and a seeded RNG.
  3. Build the paper fibre map and the ink void map once.
  4. Write mk(box, draw, {halo, seed}): draw at K px/unit → paper halo (12 offset silhouettes, destination-over) → inkify.
  5. Design each character as: one solid ink mass + one paper mass, carved with lenses; add the orange plate offset on its key element; crescent bottom-right; thin outline; carved face. Use 4 key poses as data tables (foot positions, bob, cloth swing).
  6. Bake 4 poses × 2 jitter seeds × 2 facings; derive negative prints and shatter shards.
  7. Ground: noise fields → signed distances → per-pixel coverage pattern per region (grass ticks, furrows, stipple, solid with echo contours, cobbles), 1.5-unit paper gutters, paper fibres and ink pinholes. Bake in chunks with a time budget.
  8. Decals: knock out a paper disc, then carve the motif.
  9. Shadows as horizontal lens hatching; effects as baked lens bursts, chips, drops, halftone puffs, orange stars/rays.
  10. HUD in DOM with the CSS above; floating numbers on canvas as two-plate prints.

Code

The core techniques, standalone. starter.js contains a full runnable scene (paper ground with grass ticks, forest stipple and dark soil with echo contours, main character, small root creatures, floating spirits, bare trees, collectibles, projectile, HUD, frame). The complete reference module is ../../js/styles/linocut.js.

// The two basic knife marks. Both are FILLS with the current fillStyle (ink or paper).
const TAU = Math.PI * 2;
function lens(ctx, x0, y0, x1, y1, w, bend = 0) { // pointed both ends, half-width w, centre bent by `bend`
  const dx = x1 - x0, dy = y1 - y0, L = Math.hypot(dx, dy) || 1e-6, nx = -dy / L, ny = dx / L;
  const mx = (x0 + x1) / 2, my = (y0 + y1) / 2, u = 2 * (bend + w), l = 2 * (bend - w);
  ctx.beginPath(); ctx.moveTo(x0, y0);
  ctx.quadraticCurveTo(mx + nx * u, my + ny * u, x1, y1);
  ctx.quadraticCurveTo(mx + nx * l, my + ny * l, x0, y0);
  ctx.fill();
}
function taper(ctx, x0, y0, x1, y1, w, bend = 0) { // blunt round start, sharp tip (blades, toes, hairs)
  const dx = x1 - x0, dy = y1 - y0, L = Math.hypot(dx, dy) || 1e-6, nx = -dy / L, ny = dx / L;
  const mx = (x0 + x1) / 2 + nx * bend * 2, my = (y0 + y1) / 2 + ny * bend * 2, th = Math.atan2(dy, dx);
  ctx.beginPath(); ctx.moveTo(x0 + nx * w, y0 + ny * w);
  ctx.quadraticCurveTo(mx + nx * w * 0.6, my + ny * w * 0.6, x1, y1);
  ctx.quadraticCurveTo(mx - nx * w * 0.6, my - ny * w * 0.6, x0 - nx * w, y0 - ny * w);
  ctx.arc(x0, y0, w, th - Math.PI / 2, th + Math.PI / 2, true); ctx.closePath(); ctx.fill();
}
// Example: shade the right side of a round form with widening black lenses (darker = wider)
function shadeRight(ctx, cx, cy, rx, ry) {
  ctx.fillStyle = '#1b1715';
  for (let i = 0; i < 6; i++) { const x = cx + rx * (0.36 + i * 0.105); lens(ctx, x - 0.5, cy - ry * 0.75 + i * 0.35, x + 0.1, cy + ry * 1.05, 0.16 + i * 0.055, 0.45); }
}
// Crescent shadow contour + misregistered spot plate in a cut hole
const MX = 0.8, MY = 0.55; // orange plate offset in world units – identical for every object
function crescent(ctx, shape, cx, cy, dx, dy, s, color = '#1b1715') {
  ctx.save(); ctx.beginPath(); shape(ctx); ctx.clip();           // stay inside the form
  ctx.beginPath(); shape(ctx);                                    // outer shape ...
  ctx.save(); ctx.translate(cx + dx, cy + dy); ctx.scale(s, s); ctx.translate(-cx, -cy); shape(ctx); ctx.restore(); // ... minus a shrunken copy moved to the light
  ctx.fillStyle = color; ctx.fill('evenodd'); ctx.restore();
}
function holeSpot(ctx, shape, color, dx, dy) {
  ctx.beginPath(); shape(ctx); ctx.fillStyle = '#f0e7d2'; ctx.fill();   // the hole shows paper ...
  ctx.save(); ctx.beginPath(); shape(ctx); ctx.clip();
  ctx.translate(dx, dy); ctx.beginPath(); shape(ctx); ctx.fillStyle = color; ctx.fill(); // ... and the offset colour plate
  ctx.restore();
}
// Usage: a round orange head = paper + offset orange plate + crescent + outline
function pumpkin(ctx, x, y, r) {
  const shape = (c) => c.ellipse(x, y, r, r * 0.85, 0, 0, TAU);
  ctx.beginPath(); shape(ctx); ctx.fillStyle = '#f0e7d2'; ctx.fill();
  ctx.save(); ctx.translate(MX, MY); ctx.beginPath(); shape(ctx); ctx.fillStyle = '#ea6820'; ctx.fill(); ctx.restore();
  crescent(ctx, shape, x, y, -r * 0.14, -r * 0.12, 0.93);
  ctx.beginPath(); shape(ctx); ctx.strokeStyle = '#1b1715'; ctx.lineWidth = 0.75; ctx.stroke();
}
// Sprite bake: paper halo behind + uneven ink (pinholes from a void-noise map)
function hash2(x, y, s) { let h = (Math.imul(x, 374761393) + Math.imul(y, 668265263) + Math.imul(s, 1442695041)) | 0; h = Math.imul(h ^ (h >>> 13), 1274126177); h ^= h >>> 16; return (h >>> 0) / 4294967296; }
const VOID = new Uint8Array(65536).map((_, i) => Math.max(0, Math.min(255, Math.round((0.5 * hash2(i & 255, i >> 8, 5) + 0.5 * hash2((i & 255) >> 3, i >> 11, 77)) * 300 - 40))));
function paperHalo(c, rPx) {
  const s = document.createElement('canvas'); s.width = c.width; s.height = c.height;
  const sc = s.getContext('2d'); sc.drawImage(c, 0, 0); sc.globalCompositeOperation = 'source-atop'; sc.fillStyle = '#f0e7d2'; sc.fillRect(0, 0, s.width, s.height);
  const ctx = c.getContext('2d'); ctx.globalCompositeOperation = 'destination-over';
  for (let i = 0; i < 12; i++) ctx.drawImage(s, Math.cos(i / 12 * TAU) * rPx, Math.sin(i / 12 * TAU) * rPx);
  ctx.globalCompositeOperation = 'source-over';
}
function inkify(c, seed) {
  const ctx = c.getContext('2d', { willReadFrequently: true }), im = ctx.getImageData(0, 0, c.width, c.height), d = im.data;
  const P = [240, 231, 210], sx = (seed * 37) & 255, sy = (seed * 91) & 255;
  for (let y = 0, i = 0; y < c.height; y++) for (let x = 0; x < c.width; x++, i += 4) {
    if (d[i + 3] < 100) continue;
    const v = VOID[(((y + sy) & 255) << 8) + ((x + sx) & 255)];
    if (d[i] < 80 && d[i + 1] < 80 && d[i + 2] < 80) { if (v > 238) for (let k = 0; k < 3; k++) d[i + k] += (P[k] - d[i + k]) * 0.72; } // pinhole
    else if (d[i] > 160 && d[i] - d[i + 2] > 100) { const f = 0.93 + v / 255 * 0.12; for (let k = 0; k < 3; k++) d[i + k] *= f; } // orange density grain
  }
  ctx.putImageData(im, 0, 0);
}
// Ground: analytic grass ticks (1–3 tapered blades per hashed 9-unit cell). Returns ink coverage 0..1 at world X,Y.
function hashInt(x, y, s) { let h = (Math.imul(x, 374761393) + Math.imul(y, 668265263) + Math.imul(s, 1442695041)) | 0; h = Math.imul(h ^ (h >>> 13), 1274126177); h ^= h >>> 16; return h >>> 0; }
const clamp01 = (v) => (v < 0 ? 0 : v > 1 ? 1 : v);
function blade(dx, dy, ang, L, res) {
  const ux = Math.sin(ang), uy = -Math.cos(ang); let t = (dx * ux + dy * uy) / L;
  if (t > 1) return 0; if (t < 0) t = 0;
  return clamp01((0.46 * (1 - t) - Math.hypot(dx - ux * t * L, dy - uy * t * L)) * res + 0.5); // tapering half-width 0.46 -> 0
}
function grass(X, Y, dens, res) {
  const GC = 9, fx = X / GC, fy = Y / GC, ix = Math.floor(fx), iy = Math.floor(fy);
  const sx = fx - ix < 0.5 ? ix - 1 : ix, sy = fy - iy < 0.5 ? iy - 1 : iy; let a = 0;
  for (let j = 0; j < 2; j++) for (let i = 0; i < 2; i++) {
    const h = hashInt(sx + i, sy + j, 4141); if ((h & 1023) > dens * 1024) continue;
    const dx = X - (sx + i + 0.15 + ((h >>> 10) & 255) / 255 * 0.7) * GC, dy = Y - (sy + j + 0.35 + ((h >>> 18) & 255) / 255 * 0.55) * GC;
    if (dx < -3.3 || dx > 3.3 || dy > 0.7 || dy < -4.6) continue;
    const type = (h >>> 26) & 3, L = 2.2 + ((h >>> 28) & 3) * 0.45;
    let v = blade(dx, dy, 0.16, L, res);
    if (type >= 1) v = Math.max(v, blade(dx + 0.55, dy, -0.5, L * 0.72, res));
    if (type >= 2) v = Math.max(v, blade(dx - 0.55, dy, 0.75, L * 0.66, res));
    a = Math.max(a, v);
  }
  return a; // final pixel = mix(paper + fibre, ink, a)
}
// Dark soil with echo contours (dS = signed distance inside the soil edge, world units):
//   a = clamp01(dS*res + .5); k = max((.3 - |dS-1.8|)*res + .5, (.22 - |dS-3.4|)*res + .5); a *= 1 - clamp01(k)

Adapting it to your project

Keep fixed: two values + flat spots, filled knife marks only, fixed misregistration offset, light from the upper left, crescent + white gouge carving, paper halos, ink pinholes, hatched shadows, stepped animation.

May change:

Performance notes

Copy-paste prompt

Use the Linocut art style for my project:
- A moving linocut print: paper #f0e7d2, ink #1b1715, ONE spot colour orange #ea6820, rare teal #2e7674.
- No gradients, blur, glow or alpha shading. Tone only via line density, stipple and hatching.
- Every mark is a filled knife cut: "lens" (pointed both ends) or "taper" (blunt start, sharp tip);
  limbs are tapered splines. No constant-width strokes.
- Each figure = one solid ink mass carved with white gouges + one paper area carved with black lenses.
- Light from the upper left: heavy crescent (shape minus shifted shrunken copy) at the lower right,
  white gouge highlights upper left; shade = parallel black lenses getting wider.
- Orange is printed on its own plate offset by (+0.8, +0.55) world units everywhere (misregistration).
- Bake sprites with a 0.9-unit paper halo and ink pinholes; 4 poses × 2 jittered variants swapped at 6 fps.
- Shadows = horizontal ink lens hatching. Flashes = negative print; disappearing = carved shards + ink splat.
- Ground: fibrous paper with grass ticks, furrows, stipple forest, solid-ink soil with echo contours,
  1.5-unit paper gutters between regions. Props (trees, graves, fences) carved the same way.
- Frame: ragged ink strips with an inner rule, no vignette.
- UI: paper panels, 3px ink borders, hard 4px offset shadows, striped bars, Rye / Alfa Slab One / Special Elite.