miwale

Dusk Grove — Game Art Style Spec

Modern HD-2D pixel art: an enchanted forest clearing at golden-to-violet dusk, rim-lit sprites, banded glows, bloom and long shadows.

Dusk Grove is low-resolution pixel art (1 world unit = 1 art pixel, nearest-neighbour upscaled) that is lit like a 3D scene. Every sprite is shaded per pixel from a fixed light vector into a hand-picked, hue-shifted colour ramp, then finished with a warm sun rim on its left/top edges, a cool violet sky bounce on its right edge and a selective outline tinted from its own colours. Carved faces, mushrooms, runes and lanterns are emissive and throw additive, banded pixel glows; shadows are long silhouettes sheared to the upper right. Finally the low-res buffer is colour-graded peach-to-violet, bloomed, vignetted and tilt-shifted before it is upscaled. The mood is the last golden minute before night: warm, magical, slightly melancholic.

At a glance

FamilyPixel Art · Modern HD-2D
Moodenchanted, warm, melancholic, cozy, mysterious
Best fortop-down action games, cozy adventure RPGs, fairy-tale exploration, enchanted-forest and harvest-festival projects
RendererCanvas 2D, fully procedural (no image files)
Pixel artyes — pixelArt: { scale: 1 }, 360 art px of view height, integer upscale, smoothing off
Complexity7/10 — the most detailed pixel style: every new asset needs ramp shading, rim light, a tinted outline, a sheared shadow and often a glow
FontsCinzel (500/700/900) for headlines, Pixelify Sans (400–700) for numbers/body
Key coloursink #150c29, grass #246248, pumpkin #f79a3e, teal cape #1f6076, root violet #7426a0, ghost ice #7ab3e4, mushroom cyan #7ee0cc, gold #e8b85a, rim #ffcfa2, bounce #8d86ea

When to use it

Good fits:

Bad fits:

Color palette

SwatchHexRole
Ink#150c29Shadow-side outline base, deepest dark (never pure black)
Night#1e1538Deep background darks
Plum#4a2c62Lit-side outline tint
Dusk Shadow#1a1034Cast shadows, decal shadows (alpha 0.18–0.5)
Grass#246248Main ground mid-tone, ~55% of the screen
Meadow#589250Lighter meadow patches with blossom pixels
Forest Earth#36273aForest floor under trees
Ruin Stone#504a69Cobbles, pillars, rocks
Pond#1e3e68Water
Sun Rim#ffcfa2Warm rim light (leaves use #ffd08a)
Sky Bounce#8d86eaCool rim on right edges
Pumpkin#f79a3eMain character's pumpkin head, the warmest focal colour
Teal Cape#1f6076Main character's cloth
Root Violet#7426a0Small root creatures
Ghost Ice#7ab3e4Floating ghost creatures
Mushroom Cyan#7ee0ccEmissive mushrooms, runes, large-creature eyes
Amber#ffaa48Small collectible shards, projectile glow
Gold Trim#e8b85aUI borders, diamonds, rings
Blossom Pink#e58bb4Flowers, petals
Lavender#9a7fe0Flowers, lupines
Candle Cream#fff4dcUI headline text, hottest glow cores

Every material is a ramp (dark → light). The real ramps from the module:

grass   #0a1d2a #0d2732 #11323a #153d3f #194943 #1e5546 #246248 #2c6f4a #387d4d #4a8c51 #62a056
meadow  #0e2733 #13333a #183f3f #1e4b43 #255846 #2d6548 #38734a #46824d #589250 #70a456 #8eb75d
earth   #150f1d #1c1525 #241b2d #2d2134 #36273a #412e40 #4d3645 #5b404b #6b4b50
stone   #141127 #1f1b34 #2a2641 #36324f #433e5c #504a69 #5f5876 #6f6782 #82788f #988b9e #b3a2b0
moss    #11292a #173a31 #1f4d37 #2a613c #387541 #4a8a47 #62a04f #82b65a
water   #131a3c #16244c #1a305a #1e3e68 #244f74 #2b627e #357486 #43878d
bark    #160f22 #21162d #2d1d36 #3b2540 #4b2f49 #5d3a51 #714758 #88565f #a26a68
leaf    #0a1328 #0d1b33 #10253d #133046 #163d4c #1a4b51 #1f5a54 #266a56 #307a57 #3e8a57 #539b58 #71ad5c #9cc063 #cfd27a
pumpkin #3a1428 #64202c #93332c #c24f2c #e5742f #f79a3e #ffc35c #ffe08c
cape    #0c1430 #102241 #143354 #194866 #1f6076 #2a7a85 #40978f #6ab8a4
violet  #1a0d33 #2a1150 #3f166c #581d88 #7426a0 #922fb0 #b044b8 #d06cc4 #eea0d6   (root creature top)
rbody   #2e1636 #4d2a44 #7a4a4c #a8704c #cf9748 #e8b950 #f6d572 #fff0b0   (root creature belly / roots)
ice     #1a2252 #223672 #2c4f92 #3a6cb0 #5590cc #7ab3e4 #a4d3f4 #cfecfb #f0fcff
shroom  #0c2440 #123a5a #185274 #1f6c8a #2a8a9a #3fb0ae #7ee0cc #d0fff2
amber   #6e2430 #b2452e #e3763a #ffaa48 #ffd27a #fff2c4
tops    #0d2629 #133b36 #1b5440 #256e48 #36894e #52a455 #78bf5e #a6d66c   (leaf crowns, stems, ferns)
flowers pink #a24f7e #e58bb4 #ffc4dc · lav #5d47a2 #9a7fe0 #cfbfff · white #9d93b4 #e8e0ec #ffffff
        peach #c0605a #f7a688 #ffd9bf · gold #b8702a #f2c04e #fff0a0 · centre #ffcf4e

Palette rules:

Typography

Cinzel — weights 500, 700, 900 — engraved storybook serif for the clock, titles, overlay headlines, card names and small caps labels. Google Fonts: https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&display=swap

.clock { font-family: 'Cinzel', serif; font-weight: 900; font-size: 32px; color: #fff4dc; letter-spacing: 3px;
  text-shadow: 0 0 14px rgba(255,170,110,.65), 0 2px 0 #1a0f24; }
.label { font-family: 'Cinzel', serif; font-weight: 700; font-size: 10px; color: #e8b85a; letter-spacing: 4px;
  border-top: 1px solid rgba(232,184,90,.55); padding-top: 3px; text-shadow: 0 1px 0 #1a0f24; }
.title { font-family: 'Cinzel', serif; font-weight: 900; font-size: 46px; letter-spacing: 6px; color: #fff2c4;
  text-shadow: 0 0 22px rgba(255,170,90,.75), 0 3px 0 #2a1238; }
.title::before, .title::after { content: '\2726'; color: #e8b85a; font-size: 24px; margin: 0 18px; vertical-align: middle; }

Pixelify Sans — weights 400–700 — pixel-grid sans for bar values, counters, card descriptions and general UI. Google Fonts: https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;500;600;700&display=swap

.bar-text { font-family: 'Pixelify Sans', system-ui, sans-serif; font-size: 15px; font-weight: 600; color: #ffe8c8;
  text-shadow: 0 1px 0 #1a0f24, 0 0 8px rgba(255,150,80,.5); }
.counter { font-size: 22px; font-weight: 600; color: #ffe8f2; text-shadow: 0 1px 0 #1a0f24, 0 0 10px rgba(230,110,200,.55); }

Text effects: always a warm outer glow (rgba(255,170,90,.5–.8)) plus a hard 1–3 px dark drop line (#1a0f24 / #2a1238) straight down. Labels use wide letter-spacing (3–6 px). Floating in-world numbers are not fonts but 4x6 pixel digits (white → peach gradient per row, emphasised: #fffbe0 → #ff7048 with a #5a1a2a outline), with a #1c0f34 down-right drop shadow and a 3-px pop on appearing.

Rendering technique

  1. Buffer: render into an offscreen canvas that is ceil(displayW/up) x ceil(displayH/up) with up = max(1, round(displayH / 360)). 1 art pixel = 1 world unit; the view shows 360 units of height. imageSmoothingEnabled = false everywhere except inside the bloom/tilt-shift helpers.
  2. Init – paint sprites pixel by pixel into a Pix buffer (RGBA + a flag byte per pixel: EMIT=1 emissive, NOOUT=2 no outline, NORIM=4 no rim). Volumes are ellipsoids (blob) or cylinder rows: for each pixel compute a normal (nx, ny, nz), v = dot(n, L) * 0.5 + 0.5 + bias + texture, L = normalize(-0.62, -0.5, 0.6), colour = ramp[floor(v * ramp.length)].
  3. Init – finish pass on every sprite (finish): rim on lit edges, cool bounce on the right edge, then a selective outline in a canvas grown by 1 px per side. Mirror the unfinished pixels for the left-facing version and finish that too (so the rim stays on the left!). Also bake a white flash copy (#fff8f0, source-atop).
  4. Init – shadows (makeShadow): each opaque pixel at height h = anchorY - y is moved to (x + h*0.8, anchorY - h*0.3); 1-px holes closed, then 3 alpha bands (outer 0.18, body 0.34, contact blob 0.5) in #1a1034.
  5. Init – glows: a cached banded sprite per (type, radius, flat).
  6. Ground chunks (256x256 px) are built lazily via generators (5 ms per frame budget) and cached (max 90).
  7. Per frame, draw order: ground chunks → ground overlay (additive flat light pools, swaying grass) → collectibles → all shadows → y-sorted props/creatures/main character (each followed by its additive glows) → orbiting objects → projectiles → particles → floating numbers → world overlay (fireflies, drifting petals) → screen grade on the buffer → nearest-neighbour upscale to the display → DOM HUD.
  8. Every draw position is rounded to whole pixels (Math.round(x) - ox). Scaling effects (squash) use integer target sizes.

World and ground

The floor is a top-down forest clearing generated per pixel at 1 px per unit (base fill #1e4a44 while chunks are still building). It is lit by the same low sun as everything else: light from the upper left, cool bluish shadows under raised materials.

Characters

All characters are pixel sprites painted in code from shaded primitives (ellipsoid blobs, cylinder-shaded cones and legs, 2-px leaf strokes) on a 1-px grid, lit from L = normalize(-0.62, -0.5, 0.6), then run through the finish pass (warm rim #ffcfa2 left/top, cool bounce #8d86ea right, selective outline from ink #150c29 / plum #4a2c62) and mirrored for the left-facing version. Each frame also exists as a white flash copy (#fff8f0). Every character casts the long sheared shadow (kx 0.8, ky 0.3, #1a1034) plus a contact ellipse at alpha 0.5. Proportions are head-heavy chibi: head ≈ 40% of height, a short cone body, 2-px legs; silhouettes must read at 1x (big round heads/bulbs, leaf crowns, clear legs, never more than ~4 colour steps in a 3x3 area). Each creature type owns one ramp family and one glow colour, so types read at a glance.

Main character — a pumpkin-headed figure in a teal hooded cape, 26x32 px sprite, feet anchor (13, 32):

Small creature — a violet root creature with a leafy top, 24x28:

Fast creature — a floating icy ghost, 26x30:

Large creature — a mossy colossus, 60x58:

Props

Every prop is painted with the same ramp shading, finish pass (trees use the leaf rim #ffd08a at 0.5, cool 0.26) and a long sheared shadow (kx 0.78, ky 0.28, alpha 0.3, colour #1a1034), anchored at the base so props y-sort with characters. Organic materials only: bark, leaves, moss, stone, petals.

Effects and particles

Atmosphere and lighting

UI

Storybook-at-dusk: translucent deep-indigo glass panels (rgba(22,12,42,.72)) with thin gold #e8b85a trim, gold 45°-rotated diamonds, engraved Cinzel headings with a warm glow and a 1–3 px dark drop line (#1a0f24), Pixelify Sans numbers. A full-width progress bar on top (teal → cream fill #3fb0ae → #7ee0cc → #ffd08a → #fff2c4, gold diamond end caps), a HUD panel top-left with a pixel heart icon and a sunset-orange bar (#ffb36a → #f07a3a → #c2402c), a central clock with a gold-ruled label, a counter top-right. Cards are violet-to-navy gradient panels with a gold frame, a dark 4 px moat, a faint 5 px gold outer ring and a gold diamond on the top edge; hover lifts 8 px and brightens the frame. Icons are 18x18 pixel sprites with the same rim/outline pass, scaled by integer factors only.

.hud { font-family: 'Pixelify Sans', system-ui, sans-serif; color: #f4e6ff; }
.panel { background: linear-gradient(90deg, rgba(22,12,42,.72), rgba(22,12,42,.25));
  border-left: 2px solid #e8b85a; border-radius: 2px 18px 18px 2px; padding: 6px 14px 6px 8px; }
.bar { position: relative; height: 12px; border-radius: 2px; background: rgba(18,8,30,.85);
  border: 1px solid rgba(232,184,90,.7); box-shadow: 0 0 0 1px rgba(10,5,20,.8); }
.bar::before, .bar::after { content: ''; position: absolute; top: 50%; width: 9px; height: 9px; background: #e8b85a;
  transform: translateY(-50%) rotate(45deg); box-shadow: 0 0 8px rgba(255,200,120,.7); }
.bar::before { left: -6px; } .bar::after { right: -6px; }
.bar.warm > i { display: block; height: 100%; background: linear-gradient(#ffb36a 0%, #f07a3a 40%, #c2402c 100%);
  box-shadow: 0 0 10px rgba(255,120,60,.6), inset 0 1px 0 rgba(255,236,190,.6); }
.bar.teal > i { display: block; height: 100%; background: linear-gradient(90deg, #3fb0ae 0%, #7ee0cc 45%, #ffd08a 85%, #fff2c4 100%);
  box-shadow: 0 0 12px rgba(126,224,204,.55), inset 0 -3px 0 rgba(20,60,80,.35), inset 0 1px 0 rgba(255,255,255,.45); }
.card { width: 220px; min-height: 270px; padding: 26px 18px 18px; border-radius: 4px;
  background: linear-gradient(180deg, rgba(48,28,82,.94) 0%, rgba(26,16,50,.96) 60%, rgba(18,30,46,.96) 100%);
  border: 1px solid #e8b85a;
  box-shadow: 0 0 0 4px rgba(20,10,34,.85), 0 0 0 5px rgba(232,184,90,.35), 0 14px 30px rgba(0,0,0,.5), inset 0 0 30px rgba(126,224,204,.08); }
.card::before { content: ''; position: absolute; left: 50%; top: -6px; width: 10px; height: 10px; background: #e8b85a;
  transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 10px rgba(255,200,120,.8); }
.overlay { background: radial-gradient(ellipse at 50% 45%, rgba(60,30,80,.55) 0%, rgba(14,8,30,.86) 75%); }

Motion and animation

Do and don't

Do:

Don't:

Implementation recipe

  1. Create a low-res buffer: up = max(1, round(H/360)), buffer ceil(W/up) x ceil(H/up); 1 world unit = 1 px.
  2. Implement Pix (RGBA + flag array), blob() (ellipsoid N·L → ramp index) and a cylinder-row helper for trunks, capes, legs.
  3. Define ramps for every material (copy the ones above, hue-shifted dark → light).
  4. Implement finish() (rim + bounce + selective outline, canvas +1 px per side) and makeShadow() (shear 0.8/0.3, 3 alpha bands).
  5. Paint the main character at ~26x32 px: big shaded head with an emissive face, cone body, 2-px legs. Make 6 walk + 4 idle frames by offsetting parts by 1 px. Finish both facings (mirror the raw pixels, then finish) and bake flash copies.
  6. Paint each creature type in its own ramp with glowing eyes; large creatures ~60 px, small creatures ~24 px.
  7. Implement cached banded glows and draw them with 'lighter' after every emissive sprite.
  8. Build the ground: posterised fbm textures per material, a material map from large fbm fields, height-based edge shading, decals on a hashed grid, warm/cool macro light. Cache it in chunks.
  9. Each frame: ground → light pools → shadows → y-sorted sprites + glows → projectiles/particles → fireflies/petals → grade on the buffer → nearest-neighbour upscale.
  10. Build the HUD in DOM/CSS with indigo glass, gold trim, Cinzel + Pixelify Sans.
  11. Check: at 1x every figure has a warm left edge, a violet right edge, a tinted outline, a shadow to the upper right; nothing is black; all positions are integers.

Code

These are the core techniques from the module, made standalone. starter.js in this folder contains all of them plus the main character, a small root creature, a ghost, a tree, mushrooms, a rock, a ground baker and a complete preview scene. The full implementation is ../../js/styles/dusk.js.

Ramp shading of an ellipsoid into a pixel buffer:

const LDIR = (() => { const v = [-0.62, -0.5, 0.6], n = Math.hypot(...v); return v.map((c) => c / n); })();
/** buf = {w, h, d: Uint8ClampedArray(w*h*4)}; ramp = [[r,g,b], ...] dark -> light. */
function blob(buf, cx, cy, rx, ry, ramp, bias = 0) {
  for (let y = Math.floor(cy - ry - 1); y <= Math.ceil(cy + ry); y++) {
    for (let x = Math.floor(cx - rx - 1); x <= Math.ceil(cx + rx); x++) {
      if (x < 0 || y < 0 || x >= buf.w || y >= buf.h) continue;
      const nx = (x + 0.5 - cx) / rx, ny = (y + 0.5 - cy) / ry, dd = nx * nx + ny * ny;
      if (dd > 1) continue;
      const nz = Math.sqrt(1 - dd);
      const v = (nx * LDIR[0] + ny * LDIR[1] + nz * LDIR[2]) * 0.5 + 0.5 + bias;
      const c = ramp[Math.max(0, Math.min(ramp.length - 1, Math.floor(v * ramp.length)))];
      const o = (y * buf.w + x) * 4;
      buf.d[o] = c[0]; buf.d[o + 1] = c[1]; buf.d[o + 2] = c[2]; buf.d[o + 3] = 255;
    }
  }
}

The finish pass — two-tone rim light and selective outline (returns a new RGBA array, 1 px larger per side):

const RIM = [255, 207, 162], BOUNCE = [141, 134, 234], INK = [21, 12, 41], PLUM = [74, 44, 98];
const mix = (a, b, t) => [a[0] + (b[0] - a[0]) * t, a[1] + (b[1] - a[1]) * t, a[2] + (b[2] - a[2]) * t];
function finish(d, w, h, emit /* Uint8Array: 1 = emissive, skip rim */, rimA = 0.42, coolA = 0.22) {
  const sol = (x, y) => x >= 0 && y >= 0 && x < w && y < h && d[(y * w + x) * 4 + 3] > 0;
  const src = new Uint8ClampedArray(d);
  for (let y = 0; y < h; y++) for (let x = 0; x < w; x++) {
    const i = y * w + x, q = i * 4;
    if (!d[q + 3] || emit[i]) continue;
    const lit = !sol(x - 1, y) ? 1 : !sol(x, y - 1) ? 0.75 : !sol(x - 1, y - 1) ? 0.3 : 0;
    const dk = !sol(x + 1, y) ? 1 : (!sol(x + 1, y - 1) && !sol(x + 1, y + 1)) ? 0.4 : 0;
    const [c, t] = lit ? [RIM, rimA * lit] : [BOUNCE, coolA * dk];
    for (let k = 0; k < 3; k++) src[q + k] += (c[k] - src[q + k]) * t;
  }
  const W = w + 2, H = h + 2, out = new Uint8ClampedArray(W * H * 4);
  for (let y = 0; y < h; y++) for (let x = 0; x < w; x++) for (let k = 0; k < 4; k++) out[((y + 1) * W + x + 1) * 4 + k] = src[(y * w + x) * 4 + k];
  for (let Y = 0; Y < H; Y++) for (let X = 0; X < W; X++) {
    const x = X - 1, y = Y - 1;
    if (sol(x, y)) continue;
    let nb = -1, shadowSide = false;
    if (sol(x - 1, y)) { nb = y * w + x - 1; shadowSide = true; }
    else if (sol(x, y - 1)) { nb = (y - 1) * w + x; shadowSide = true; }
    else if (sol(x + 1, y)) nb = y * w + x + 1;
    else if (sol(x, y + 1)) nb = (y + 1) * w + x;
    if (nb < 0) continue;
    const c = [d[nb * 4], d[nb * 4 + 1], d[nb * 4 + 2]];
    const oc = shadowSide ? mix(c.map((v) => v * 0.32), INK, 0.55) : mix(c.map((v) => v * 0.55), PLUM, 0.45);
    const t = (Y * W + X) * 4;
    out[t] = oc[0]; out[t + 1] = oc[1]; out[t + 2] = oc[2]; out[t + 3] = d[nb * 4 + 3];
  }
  return { data: out, w: W, h: H };
}

Banded additive glow sprite (cache it; draw with ctx.globalCompositeOperation = 'lighter'):

const B8 = [0,32,8,40,2,34,10,42,48,16,56,24,50,18,58,26,12,44,4,36,14,46,6,38,60,28,52,20,62,30,54,22,
  3,35,11,43,1,33,9,41,51,19,59,27,49,17,57,25,15,47,7,39,13,45,5,37,63,31,55,23,61,29,53,21].map((v) => (v + 0.5) / 64);
function glowSprite(cols /* 3 rgb: core, mid, rim */, r, flat) {
  const rx = r, ry = flat ? Math.max(2, Math.round(r * 0.55)) : r, w = rx * 2 + 1, h = ry * 2 + 1;
  const bands = r < 5 ? 3 : r < 12 ? 4 : 5;
  const c = document.createElement('canvas'); c.width = w; c.height = h;
  const ctx = c.getContext('2d'), img = ctx.createImageData(w, h);
  for (let y = 0; y < h; y++) for (let x = 0; x < w; x++) {
    const dd = Math.hypot((x - rx) / (rx + 0.5), (y - ry) / (ry + 0.5));
    if (dd >= 1) continue;
    const b = dd * bands; let bi = Math.floor(b);
    if (b - bi > 0.55 && B8[((y & 7) << 3) | (x & 7)] < (b - bi - 0.55) / 0.45) bi++;   // dithered band edge
    if (bi >= bands) continue;
    const t = Math.min(1, (bi / bands) / (1 - 1 / bands)) * 2, i = Math.min(1, Math.floor(t)), f = t - i;
    const o = (y * w + x) * 4;
    for (let k = 0; k < 3; k++) img.data[o + k] = cols[i][k] + (cols[i + 1][k] - cols[i][k]) * f;
    img.data[o + 3] = 255 * Math.pow(1 - bi / bands, 1.6);
  }
  ctx.putImageData(img, 0, 0);
  return c;
}
// warm: [[255,240,184],[255,171,74],[216,69,106]]  cyan: [[232,255,250],[88,232,214],[58,106,208]]

Long sheared cast shadow (ax, ay = feet anchor inside the sprite):

function shadowMask(d, w, h, ax, ay, kx = 0.8, ky = 0.3) {
  const pts = [];
  for (let y = 0; y < h; y++) for (let x = 0; x < w; x++) {
    if (!d[(y * w + x) * 4 + 3]) continue;
    const hgt = Math.max(0, ay - (y + 0.5));                 // height above the feet
    pts.push(Math.floor(x + hgt * kx), Math.floor(ay - 0.5 - hgt * ky));
  }
  return pts; // rasterise into a mask, close 1-px gaps, add a 1-px outer band; fill #1a1034 at alpha 0.34 (band 0.18)
}

Screen grade on the low-res buffer b (W x H), before the nearest-neighbour upscale:

function grade(b, W, H, tint, sun, vig, small1, small2) {   // tint/sun/vig: prebaked W x H canvases; small: W/5 x H/5
  b.globalCompositeOperation = 'multiply'; b.drawImage(tint, 0, 0);
  const s1 = small1.getContext('2d'), s2 = small2.getContext('2d');
  s1.globalCompositeOperation = 'copy'; s1.drawImage(b.canvas, 0, 0, W, H, 0, 0, small1.width, small1.height);
  s2.globalCompositeOperation = 'copy'; s2.drawImage(small1, 0, 0);
  s2.globalCompositeOperation = 'multiply'; s2.drawImage(small1, 0, 0); s2.drawImage(small1, 0, 0); // keep highlights only
  b.imageSmoothingEnabled = true; b.globalCompositeOperation = 'screen'; b.globalAlpha = 0.7;
  b.drawImage(small2, 0, 0, W, H); b.imageSmoothingEnabled = false;
  b.globalCompositeOperation = 'source-over'; b.globalAlpha = 0.9; b.drawImage(sun, 0, 0);
  b.globalCompositeOperation = 'multiply'; b.drawImage(vig, 0, 0);
  b.globalCompositeOperation = 'source-over'; b.globalAlpha = 1;
}

Adapting it to your project

Keep fixed (this is the style):

May change:

Performance notes

Copy-paste prompt

Use the Dusk Grove art style for my project: modern HD-2D pixel art at golden-to-violet dusk.
- Render to a low-res buffer 360 px tall (1 world unit = 1 px), upscale by an integer factor with imageSmoothingEnabled=false.
- No image files: paint every sprite pixel by pixel from shaded ellipsoids/cylinders. Shade with
  v = dot(normal, normalize(-0.62,-0.5,0.6))*0.5+0.5 and pick ramp[floor(v*len)] from hand-made hue-shifted ramps
  (darks shift to indigo/violet, lights to warm yellow). No smooth gradients inside sprites, no pure black.
- Finish pass on every sprite: warm rim #ffcfa2 (0.42) on left/top edges, cool bounce #8d86ea (0.22) on right edges,
  1-px selective outline = neighbour colour*0.32 mixed with ink #150c29 (shadow side) or *0.55 with plum #4a2c62 (lit side).
- Long cast shadows: silhouette sheared x+h*0.8, y-h*0.3 (towards upper right), #1a1034, alpha bands 0.18/0.34/0.5.
- Emissive faces/eyes/mushrooms/lanterns + additive banded glows (3–5 dithered bands, 'lighter').
- Main character ~26x32 px, head-heavy, glowing carved face; walk 6 frames, idle 4; each creature type owns one ramp + glow colour.
- Props: round oaks with leaf-cluster canopies, mossy rocks, ruined pillars, stone lanterns, glowing mushrooms, all with the same rim and shadow.
- Ground: posterised fbm grass (#0a1d2a…#62a056) with tufts and tiny 3–5 px flowers, meadows, forest earth, mossy stone ruins, ponds.
- Fireflies and drifting petals; impacts and dissolves burst into petals and light motes, no gore.
- Grade on the buffer: multiply #fff0dc→#f0dce0→#b8a6d4→#8a76c0 (top-left to bottom-right), bloom (1/5 size, squared, screen 0.7),
  upper-left sun glow, violet vignette #5c4a8a.
- UI: indigo glass panels rgba(22,12,42,.72), gold #e8b85a trim and diamonds, Cinzel 900 headings with warm glow, Pixelify Sans numbers.
- Round every draw position to whole pixels; bake all sprites/shadows/glows once.