miwale

Paper World — Game Art Style Spec

A handmade craft-table diorama: cut construction-paper puppets with white sticker rims and brass split pins on layered kraft, felt and newsprint.

Everything looks as if it was cut from real craft materials and laid out on a table under a warm lamp at the top-left. The ground is a stack of large sheets: kraft paper, corrugated cardboard, green felt, a carpet of cut paper leaves and torn newspaper scraps. Characters are jointed paper puppets. Each body part is a separate flat piece with a cream "sticker" rim, paper grain and its own soft drop shadow, and brass split pins hold the joints together. There are no ink outlines anywhere. The eye reads edges from the cream rim, the side thickness of the sheets and the warm brown shadows that always fall right-down. The sample cast is a puppet with a round, carved orange pumpkin head and an aubergine tunic, cream root-bulb creatures with torn aubergine caps, translucent tissue-paper ghosts and a large cardboard golem; impacts shred the paper into tumbling scraps and confetti.

At a glance

PropertyValue
FamilyPapercraft · Cut-paper diorama
Moodcozy, handmade, playful, warm, storybook
Best fortop-down action games, cozy adventure and farming games, board-game adaptations, family games, seasonal events
RendererCanvas 2D, fully procedural, no image assets
Pixel artNo. Native resolution, sprites baked at 4 px per world unit
Complexity6/10. Every new asset is a puppet of many separate pieces, each needing rim, grain, light, shadow and pins; the layered ground is expensive
FontsPatrick Hand, Gochi Hand, Caveat Brush (Google Fonts)
Key colourskraft #a87c54, felt #607c46, card #c49c6c, rim #fbf6ea, pumpkin #e57d2c, aubergine #6e3c6d, teal #36a596, shadow rgb(48,26,12)

When to use it

Color palette

SwatchHexRole
Kraft ground#a87c54Base table / kraft paper (tint B #b4885c)
Kraft#ad8259 / dark #7d5838 / light #c9a275Kraft paper pieces, fold tabs, belts
Cardboard#c49c6c / dark #96714a / light #dcbb8cCorrugated card sheets, fences, golem
Felt green#607c46 (tint B #768442)Felt meadow sheets
Moss felt#868440Olive felt patches with a running stitch
Newsprint#ddd5c0Newspaper scraps
Paper core#f6eedcWhite fibres at torn edges
Thread#f4e8ceRunning stitches on felt
Sticker rim#fbf6eaRim around every cut piece; text outline; HUD borders
Cream#f2e7cf / dark #dccdabPaper flowers, sticks, light details
Ink brown#3b2a26Text and darkest drawn details
Shadow brown#301a0c = rgb(48,26,12)Every shadow at 0.2–0.6 alpha
Pumpkin#e57d2c / light #f59c4c / dark #bb5a20 / deep #9c4618Main character head, fruit props, accents
Glow#ffcf4a / hot #fff3b8 / deep #f0922aLight behind cut-out holes
Aubergine#6e3c6d / light #9c629a / dark #4a2649 / deep #2e1530Main character tunic, creature caps and brows
Mustard#d6a43a / dark #ac7f26 / light #ecc463Buttons, cuffs, hay
Leaf#76a54e / light #a3cc6a / dark #4d7a35Sprouts, scarf, leaves
Red#c4432f / dark #8e2c22Main bar fill, emphasis numbers, buttons, labels
Teal#36a596 / mid #5cc3b2 / dark #1d6d68Collectible gems, secondary bar
Denim#4f6f95Occasional cool accent (pinwheels, notebook lines)
Brass#d4ac4a / light #fff0b0 / dark #8f6d24Split pins
Ghost tissuergba(188,212,232,0.62) / rgba(248,251,253,0.72)Translucent creatures

Palette rules

Typography

All three fonts are hand-lettered and come from Google Fonts. Always weight 400.

Text effects

Rendering technique

The look comes from one primitive, the cut piece, plus strict top-left lighting. Every element (characters, props, ground decals, effects, icons) is built from it.

  1. Init: build the paper grain tile. It is 256×256 px.
    • Each pixel is 50/50 cream (255,250,235) or brown (60,36,20), at alpha 0–22/255 and 0–20/255 respectively.
    • On top go 520 short curved fibres, 3–11 px long and 0.5–1.1 px wide, in rgba(255,248,230,0.22) (55% of them) or rgba(70,40,20,0.16). 30% of the fibres are rotated 90°.
  2. Init: bake every cut piece with mkPart(bbox, draw, opts):
    1. Draw the flat shape in world units into a canvas at K = 4 px per unit.
    2. Rim: dilate the silhouette by rim × K px (default rim 0.55 units, 0.3–0.6 range) in #fbf6ea. Stamp the one-colour silhouette around 3 rings (r, 0.6r, 0.3r), with max(8, round(r·3.2)) stamps per ring, then draw the original on top.
    3. Grain: fill the grain pattern source-atop at alpha 1. Use 0.4–0.7 for foil gems and tissue.
    4. Light: fill a diagonal linear gradient (0,0)→(w,h) source-atop with stops 0: rgba(255,250,232,a), 0.45: transparent, 1: rgba(50,25,10,1.2a). Use a = 0.1 by default, 0.04–0.06 for gems and lanterns.
    5. Shadow image: make a rgb(48,26,12) silhouette blurred by 0.35 × K px (ctx.filter = 'blur()', or 10 offset stamps at alpha/4 as a fallback).
  3. Init: compose puppet frames with composeFrame(fw, fh, footX, footY, facing, parts):
    • Each part is {p, x, y, r, sh, pin}, drawn back-to-front at its pivot and rotation.
    • Before each part, draw its shadow image at alpha 0.34, offset (0.42, 0.55) units in screen space. Props use (0.55, 0.7).
    • Pins are collected through the current transform and drawn last, unmirrored.
  4. Init: wrap each frame with dropSprite.
    • The whole-puppet shadow is offset (0.9, 1.1), blurred 0.7 units, at alpha 0.3. The large golem uses (1.4, 1.7), blur 1.0. Ghosts use alpha ≈ 0.
    • A white flash copy is the frame tinted #fffaf0 at 95% source-atop.
  5. Ground chunks. These are 256×256 world units, rendered asynchronously (generator that yields every 2 rows) at ≤ 2.5 px per unit, then decals are drawn on top (see World and ground).
  6. Per frame, in order:
    1. Ground chunks.
    2. Collectible gems.
    3. Shadows for every character and prop: blob or projected cast shadow.
    4. Props and characters, y-sorted together.
    5. Orbiting objects.
    6. Projectiles.
    7. Particles.
    8. Floating numbers.
    9. Screen vignette.
  7. Resolution. Sprites are drawn with smoothing on and scaled by sc / K. World scale is canvasHeight / 360. Nothing is snapped to pixels.

World and ground

The floor is a top-down view of a craft table: material sheets stacked on kraft paper under a top-left lamp. Each layer is a noise field turned into a signed distance ((fbm − threshold) / |∇fbm|, clamped to ±90), then shaded per pixel, so outlines are smooth blobs with a slight wobble. Every sheet casts a soft warm-brown shadow right-down onto what lies beneath and shows a darker side face (its thickness) along its lower edge. Layer parameters (shadow offset, blur and alpha, and side thickness are in world units):

Layer (bottom → top)ThresholdEdge wobbleFibre noiseThicknessShadow offsetShadow blurShadow alpha
Kraft basen/a––––––
Cardboard0.500.60.101.0(1.4, 1.8)1.50.40
Felt0.491.20.221.4(1.7, 2.2)1.90.42
Moss felt0.670.90.220.9(1.2, 1.6)1.40.38
Leaf carpet0.595per leaf––(0.6, 0.75)small0.42
Newspaper0.702.00.450.35(1.0, 1.3)1.10.36

How each material is shaded:

Decals are flat cut pieces lying on the ground, baked into each chunk using a scattered grid (24-unit cells for small decals, 170-unit cells for big ones) and chosen by the region underneath:

Decal sprites are 6 px per unit, with grain at 0.9, light at 0.08, and a shadow offset (0.45, 0.55)·scale at alpha 0.34.

Characters

Every character is a jointed paper puppet: separate flat cut pieces (rim, grain, light, own shadow) rotated around pivots, drawn back-to-front, with each piece dropping a blurred shadow (0.42, 0.55 units, alpha 0.34) onto the pieces below and brass split pins on the visible joints. Whole frames are pre-baked, then get a whole-puppet shadow (0.9, 1.1, blur 0.7, alpha 0.3) and a white flash copy.

Main character — about 18 units wide and 30 tall: a small puppet in an aubergine tunic and green striped scarf with a big round pumpkin head whose face is carved out and glows. The frame is 34×42 units with feet at (17, 38), drawn at scale 1.08. Pieces, back to front:

  1. Back leg (#6f4c30 trousers, #3e281b boot) and front leg (#8d6440, #5b3d2a boot). Each is 2.9 units wide and 6.6 long, with a dashed seam rgba(255,235,200,0.35) and a highlight strip across the boot. Rim 0.45.
  2. Back arm, in the darker tunic colour #4a2649, with a cuff and hand.
  3. Scarf tail: green #76a54e with diagonal #4d7a35 stripes every 2.4 units and fringe strokes.
  4. Tunic body #6e3c6d:
    • The hem is a zig-zag of 7 teeth.
    • A front panel in #9c629a is a second layer with its own 0.3-unit shadow.
    • A kraft-dark belt with a brass buckle.
    • A dashed stitch hem rgba(250,236,210,0.7), 0.2 wide, dash [0.55, 0.45].
    • Two mustard buttons with shadows.
  5. Front arm, with a brass split pin at the shoulder (radius 0.5).
  6. Stem: #5f6e30 with a curly tendril #7c9a40.
  7. Pumpkin head, 19 units wide:
    • Four stacked ellipse lobes: #9c4618 (8.7×7.5), #bb5a20, #e57d2c, #f59c4c (front, offset +0.9). Each lobe drops a shadow rgba(70,25,5,0.28) offset (0.3, 0.4).
    • One pencil rib line.
    • The face is cut out: two triangle eyes, a triangle nose and a jagged 9-tooth mouth, all glowHoles (dark #3a1408, then a radial gradient #fffbe0 → #ffe066 → #ffa21e shifted (0.32, 0.45)).
    • The face sits 1.7 units toward the facing side (three-quarter view).
  8. Scarf wrap: green with stripes and a #a3cc6a knot.

Main character animation:

Small creature (root-bulb creeper) — a cream root bulb with a torn aubergine cap, three upright leaves and glowing angry cut eyes. Frame 30×36, feet at (15, 32):

Fast creature (tissue ghost) — a floating, translucent tissue-paper sheet with a fluttering hem. Frame 30×32:

Large creature (cardboard golem) — a hulking cardboard figure with taped repairs and a glowing core. Frame 64×68, bulb 17×32:

Rules that keep characters on-style:

Props

Props are stand-up cut-outs: each stands on a fold tab (a trapezoid of #c9a275 at the foot, kraft-light; grey #b3aebb for stones; rim 0.3, light 0.05, with a darker 0.7-unit crease band) and is composed like a puppet frame (part shadows offset (0.55, 0.7) instead of (0.42, 0.55)). Every prop gets a projected cast shadow:

The prop set:

Effects and particles

Atmosphere and lighting

UI

The HUD is made of craft materials too:

.hud-bar { width: 240px; height: 22px; background: #c9a275; border-radius: 2px; transform: rotate(0.6deg); overflow: hidden;
  box-shadow: 0 0 0 3px #fbf6ea, 3px 5px 6px rgba(48,26,12,.45);
  background-image: repeating-linear-gradient(0deg, rgba(90,60,30,.12) 0 1px, transparent 1px 4px); }
.hud-bar > .fill { height: 100%;
  background: radial-gradient(circle at 5px 5px, rgba(255,240,220,.55) 1.6px, transparent 2px) 0 0/10px 10px, #c4432f;
  clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 25%, 100% 50%, calc(100% - 4px) 75%, 100% 100%, 0 100%); }
.hud-bar2 { height: 24px; background: #f4ead2; transform: rotate(-0.4deg); box-shadow: 0 0 0 3px #fbf6ea, 3px 5px 6px rgba(48,26,12,.45); }
.hud-bar2 > .fill { background: repeating-linear-gradient(-45deg, #36a596 0 9px, #5cc3b2 9px 18px); }
.hud-label { font: 400 22px 'Gochi Hand', cursive; color: #3b2a26; background: #fbf6ea; padding: 0 9px;
  border-radius: 2px; transform: rotate(-2deg); box-shadow: 2px 3px 4px rgba(48,26,12,.4); }
.hud-note { position: relative; background: #fffdf6; padding: 6px 26px 4px; transform: rotate(-1.5deg); border-radius: 2px;
  background-image: linear-gradient(transparent 13px, rgba(196,67,47,.5) 13px 15px, transparent 15px),
                    repeating-linear-gradient(transparent 0 19px, rgba(79,111,149,.28) 19px 20px);
  box-shadow: 3px 6px 8px rgba(48,26,12,.45); font: 400 40px/1 'Caveat Brush', cursive; color: #3b2a26; }
.hud-note::before { content: ''; position: absolute; left: 50%; top: -6px; width: 15px; height: 15px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff0b0, #d4ac4a 50%, #8f6d24); box-shadow: 1px 2px 2px rgba(48,26,12,.5); }
.card { background: #fffdf6; border-radius: 3px; transform: rotate(-3deg); box-shadow: 4px 9px 12px rgba(20,10,5,.55);
  background-image: linear-gradient(transparent 58px, rgba(196,67,47,.55) 58px 60px, transparent 60px),
                    repeating-linear-gradient(transparent 0 25px, rgba(79,111,149,.25) 25px 26px); }
.card::before { content: ''; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; transform: rotate(-4deg);
  background: repeating-linear-gradient(-45deg, rgba(54,165,150,.75) 0 7px, rgba(154,230,214,.75) 7px 14px); }
.overlay { background: radial-gradient(ellipse at center, rgba(60,35,20,.35), rgba(40,22,12,.72)); }

Motion and animation

Do and don't

Do

Don't

Implementation recipe

  1. Set up the camera. Use a world-unit camera with a visible height of 360 units, scale = canvasHeight / 360, and smoothing on.
  2. Write the material helpers: cv, sil (silhouette), dilate (rim), softShadow (blur), buildGrain, applyGrain, applyLight, and mkPart(bbox, draw, {rim, grain, light, shBlur, rimColor}) at K = 4 px per unit.
  3. Write drawPin. It draws the brass split pin: a shadow disc offset (0.18, 0.24), a radial gradient #fff0b0 → #d4ac4a @0.45 → #8f6d24 centred at −0.35r, and a slot line.
  4. Write the puppet helpers: composeFrame (parts with pivots, per-part shadow offset (0.42, 0.55) at alpha 0.34, pins drawn last) and dropSprite (puppet shadow (0.9, 1.1), blur 0.7, alpha 0.3, plus a white flash copy).
  5. Design the main character as 6–9 pieces: legs, body, arms, head, accessory.
    • Round forms: stacked lobes in deep/dark/mid/light.
    • Face: glowHole cut-outs.
    • Clothing: a lighter front panel and a stitch line.
    • Bake 8 walk, 8 action and 4 idle frames per facing.
  6. Design each creature type with the same pieces but its own dominant colour and silhouette.
    • Use torn caps (tornCap) to split two colours on one piece.
    • Use tissue (alpha sheets, translucent rim) for spirits and cardboard (tape, staples, corrugation) for large figures.
  7. Build the ground as stacked material sheets on a base paper. For each sheet:
    • Draw a blurred shadow offset right-down.
    • Draw the darker side face shifted down by the sheet's thickness.
    • Fill the top with a material texture (2.5 texels per unit).
    • Torn sheets get a white core edge; felt gets a running stitch.
  8. Scatter baked decals (flowers, buttons, tape, staples, confetti) by region. Each is a mini cut piece with a shadow.
  9. Build props as stand-up cut-outs on fold tabs, each with a skewed, blurred cast shadow.
  10. Draw characters per frame: contact blob shadow, then the sprite blit, then the flash overlay, then additive glows. Y-sort characters and props together.
  11. Add the effects: two-sided flipping paper scraps, confetti, tear-apart and streaked projectiles.
  12. Finish with the warm vignette. Then build the HUD in CSS with paper strips, stickers, notebook paper, washi tape and the hand-lettered fonts.

Code

The snippets below are the core techniques, ported from the module so they run on their own. starter.js (in this folder) contains all of them plus a working main character, root-bulb creeper, ghost, tree, pumpkin, gems, layered ground and a preview draw(). The full module is ../../js/styles/paper.js.

1. The cut piece (rim + grain + light + shadow)

const K = 4, TAU = Math.PI * 2, SH = 'rgb(48,26,12)';
const cv = (w, h) => { const c = document.createElement('canvas'); c.width = Math.max(1, Math.ceil(w)); c.height = Math.max(1, Math.ceil(h)); return c; };
function sil(src, col) { const c = cv(src.width, src.height), x = c.getContext('2d'); x.drawImage(src, 0, 0); x.globalCompositeOperation = 'source-in'; x.fillStyle = col; x.fillRect(0, 0, c.width, c.height); return c; }
function dilate(src, r, col) { // white sticker rim
  const pad = Math.ceil(r) + 2, c = cv(src.width + pad * 2, src.height + pad * 2), x = c.getContext('2d'), s = sil(src, col);
  for (const rr of [r, r * 0.6, r * 0.3]) { const n = Math.max(8, Math.round(rr * 3.2)); for (let i = 0; i < n; i++) { const a = ((i + 0.5) / n) * TAU; x.drawImage(s, pad + Math.cos(a) * rr, pad + Math.sin(a) * rr); } }
  x.drawImage(s, pad, pad); return { c, pad };
}
function applyLight(x, w, h, a) { // top-left lamp across the whole piece
  x.save(); x.globalCompositeOperation = 'source-atop';
  const g = x.createLinearGradient(0, 0, w, h);
  g.addColorStop(0, `rgba(255,250,232,${a})`); g.addColorStop(0.45, 'rgba(255,250,232,0)'); g.addColorStop(1, `rgba(50,25,10,${a * 1.2})`);
  x.fillStyle = g; x.fillRect(0, 0, w, h); x.restore();
}
function mkPart(bb, draw, rim = 0.55, grainTile = null) {
  const c = cv((bb[2] - bb[0]) * K + 4, (bb[3] - bb[1]) * K + 4), x = c.getContext('2d');
  x.setTransform(K, 0, 0, K, -bb[0] * K + 2, -bb[1] * K + 2); draw(x);
  const d = dilate(c, rim * K, '#fbf6ea'); const ix = d.c.getContext('2d'); ix.drawImage(c, d.pad, d.pad);
  if (grainTile) { ix.save(); ix.globalCompositeOperation = 'source-atop'; ix.fillStyle = ix.createPattern(grainTile, 'repeat'); ix.fillRect(0, 0, d.c.width, d.c.height); ix.restore(); }
  applyLight(ix, d.c.width, d.c.height, 0.1);
  const pad = Math.ceil(0.35 * K * 2.5) + 2, sh = cv(d.c.width + pad * 2, d.c.height + pad * 2), sx = sh.getContext('2d');
  sx.filter = `blur(${0.35 * K}px)`; sx.drawImage(sil(d.c, SH), pad, pad); sx.filter = 'none';
  return { img: d.c, ox: -bb[0] * K + 2 + d.pad, oy: -bb[1] * K + 2 + d.pad, sh, shPad: pad };
}

2. Puppet frame with per-part shadows and brass pins

function drawPin(x, px, py, r) {
  x.fillStyle = 'rgba(48,26,12,0.35)'; x.beginPath(); x.arc(px + 0.18, py + 0.24, r * 1.05, 0, TAU); x.fill();
  const g = x.createRadialGradient(px - r * 0.35, py - r * 0.35, r * 0.1, px, py, r);
  g.addColorStop(0, '#fff0b0'); g.addColorStop(0.45, '#d4ac4a'); g.addColorStop(1, '#8f6d24');
  x.fillStyle = g; x.beginPath(); x.arc(px, py, r, 0, TAU); x.fill();
  x.strokeStyle = 'rgba(90,60,20,0.55)'; x.lineWidth = 0.12;
  x.beginPath(); x.moveTo(px - r * 0.55, py + r * 0.1); x.lineTo(px + r * 0.55, py - r * 0.1); x.stroke();
}
function composeFrame(fw, fh, footX, footY, facing, list) {
  const c = cv(fw * K, fh * K), x = c.getContext('2d'), pins = [];
  for (const it of list) {
    const p = it.p, place = (dx, dy) => { x.setTransform(K, 0, 0, K, (footX + dx) * K, (footY + dy) * K); x.scale(facing, 1); x.translate(it.x, it.y); if (it.r) x.rotate(it.r); };
    if (it.sh !== 0) { place(0.42, 0.55); x.globalAlpha = it.sh ?? 0.34; x.drawImage(p.sh, (-p.ox - p.shPad) / K, (-p.oy - p.shPad) / K, p.sh.width / K, p.sh.height / K); }
    place(0, 0); x.globalAlpha = 1; x.drawImage(p.img, -p.ox / K, -p.oy / K, p.img.width / K, p.img.height / K);
    if (it.pin) { const m = x.getTransform(); pins.push([(m.a * it.pin[0] + m.c * it.pin[1] + m.e) / K, (m.b * it.pin[0] + m.d * it.pin[1] + m.f) / K, it.pin[2]]); }
  }
  x.setTransform(K, 0, 0, K, 0, 0); for (const q of pins) drawPin(x, q[0], q[1], q[2]); // unmirrored -> highlight stays top-left
  return c;
}

3. Cut-out glowing face hole and torn two-colour cap

function glowHole(x, path, gx, gy, gr, hot, mid, edge) {
  x.save(); path(); x.clip();
  x.fillStyle = '#3a1408'; x.fillRect(gx - gr * 3, gy - gr * 3, gr * 6, gr * 6); // the cut edge (paper thickness)
  x.translate(0.32, 0.45);                                                     // light paper sits lower-right of the hole
  const g = x.createRadialGradient(gx, gy, 0, gx, gy, gr * 1.5);
  g.addColorStop(0, hot); g.addColorStop(0.5, mid); g.addColorStop(1, edge);
  x.fillStyle = g; path(); x.fill(); x.restore();
}
function tornCap(x, rand, x0, x1, y, top, col, coreW) { // rand() in [0,1)
  const pts = []; for (let px = x0; px <= x1 + 0.01; px += 1.1) pts.push([px, y + (rand() * 2 - 1) * 0.45 + Math.sin(px * 0.45) * 0.5]);
  const poly = (dy) => { x.beginPath(); x.moveTo(pts[0][0], top); for (const p of pts) x.lineTo(p[0], p[1] + dy); x.lineTo(pts[pts.length - 1][0], top); x.closePath(); };
  x.fillStyle = 'rgba(48,26,12,0.22)'; poly(coreW + 0.35); x.fill(); // shadow
  x.fillStyle = '#fbf6ea'; poly(coreW); x.fill();                    // white paper core
  x.fillStyle = col; poly(0); x.fill();                              // coloured layer
}

4. A ground sheet and the projected prop shadow

// one stacked material sheet: shadow on what lies below, side thickness, textured top (world units, ctx scaled by s)
function sheet(x, s, path, fill, L /* {ox, oy, soft, sh, thick, side} */) {
  x.save(); x.filter = `blur(${L.soft * s}px)`; x.translate(L.ox, L.oy); path(x); x.fillStyle = `rgba(48,26,12,${L.sh})`; x.fill(); x.restore();
  x.save(); x.translate(0, L.thick); path(x); x.fillStyle = L.side; x.fill(); x.restore();
  path(x); x.fillStyle = fill; x.fill();
}
// felt: sheet(x, s, feltPath, feltPattern, { ox: 1.7, oy: 2.2, soft: 1.9, sh: 0.42, thick: 1.4, side: '#455a33' })

function castShadow(spr /* {img, ax, ay} foot in px */, kx = 0.42, ky = 0.26) {
  const src = spr.img, fx = spr.ax, fy = spr.ay, blur = 1.4 * K, pad = Math.ceil(blur * 2.5) + 4;
  const w = src.width + fy * kx + pad * 2, h = fy * ky + pad * 2 + 12, t = cv(w, h), x = t.getContext('2d');
  x.setTransform(1, 0, -kx, -ky, kx * fy + pad, ky * fy + pad + 6); x.drawImage(sil(src, '#000'), 0, 0); x.setTransform(1, 0, 0, 1, 0, 0);
  x.globalCompositeOperation = 'destination-in';
  const g = x.createLinearGradient(0, pad + 6, 0, h); g.addColorStop(0, '#000'); g.addColorStop(1, 'rgba(0,0,0,0.45)');
  x.fillStyle = g; x.fillRect(0, 0, w, h);
  const c = cv(w, h), y = c.getContext('2d'); y.filter = `blur(${blur}px)`; y.drawImage(sil(t, SH), 0, 0); y.filter = 'none';
  return { img: c, ax: fx + pad, ay: pad + 6 }; // draw at alpha 0.78 under the prop
}

Adapting it to your project

Performance notes

Copy-paste prompt

Use the Paper World art style for my project: a cut-paper craft-table diorama (Canvas 2D, procedural, no image assets).
- Everything is cut from craft materials on a table: kraft paper #a87c54, corrugated card #c49c6c, felt #607c46, cut leaves, torn newsprint #ddd5c0.
- Every object = separate flat cut pieces. Each piece: flat fill, 0.3-0.6 unit cream sticker rim #fbf6ea (dilated silhouette),
  paper grain texture source-atop, a diagonal light gradient (cream top-left -> brown bottom-right, alpha ~0.1), and its own blurred shadow.
- NO dark outlines. Edges come from the cream rim and warm brown shadows rgb(48,26,12) that always fall right-down.
- Shadow offsets grow with height: parts (0.42,0.55), puppets (0.9,1.1) blur 0.7, ground sheets (1.4-1.7, 1.8-2.2) blur 1.5-1.9.
- Characters are jointed paper puppets: 6-9 rigid pieces rotating around pivots, brass split pins (#fff0b0->#d4ac4a->#8f6d24) on joints.
- Faces are cut-out holes showing glowing paper (#fffbe0 -> #ffe066 -> #ffa21e), offset so the dark cut edge shows top-left.
- Round forms = stacked flat lobes in 4 tones; two-colour pieces use a torn edge with a white paper core.
- Ground = stacked material sheets, each with offset shadow and darker side thickness; torn newsprint, stitched felt, leaf carpet; decals: buttons, paper flowers, tape, staples, confetti.
- Props are stand-up cut-outs on fold tabs (trees, felt pines, pumpkins, gravestones, fences, hay, pinwheels) with skewed projected cast shadows.
- Effects: two-sided flipping paper scraps, confetti, figures tear in half along a zig-zag when they disappear, origami foil gems.
- Palette is muted craft colours (pumpkin #e57d2c, aubergine #6e3c6d, mustard #d6a43a, leaf #76a54e, teal #36a596). No black, no neon.
- Fonts: Patrick Hand (body), Gochi Hand (numbers), Caveat Brush (titles) with cream sticker outlines; HUD = paper strips with cream rim, notebook paper, washi tape.
- Bake all pieces, frames and ground once; per frame only drawImage. Warm brown vignette on top.