miwale

Sumi-e Ink — Game Art Style Spec

Monochrome ink-wash painting in motion: black sumi in five tones on warm xuan paper, one-stroke brushwork, lots of empty space, one vermilion accent.

Everything is painted with one black ink diluted into five tones — jiao (burnt), nong (thick), zhong (heavy), dan (light) and qing (clear) — on warm rice paper with visible fibres. Each shape is a handful of expressive single strokes: a pressed start, a tapering end, and dry-brush streaks ("flying white") where the bristles run out of ink. Washes bleed into the paper and dry with a slightly darker edge. Most of the sheet is left empty (ma): water is bare paper framed by its banks, mountains dissolve into mist, bamboo, plum branches and pines are built from classic brush motifs. The only colour is vermilion — seals, a few plum blossoms and the sash of the main character.

At a glance

FamilyPainterly · Ink wash
Moodserene, contemplative, elegant, airy, timeless
Best forcalm exploration and travel games with an East-Asian theme, martial-arts and folklore action, zen and puzzle projects, scroll menus and story maps
RendererCanvas 2D, procedural: brush ribbons + ink washes baked into sprites, per-pixel paper shader for the ground
Pixel artNo — native resolution; characters baked at 4 px per world unit, props at 3 px, ground up to 2.5 px
Complexity5/10 — the toolkit is small; deciding which few strokes carry a shape is the craft
FontsMa Shan Zheng, Zhi Mang Xing, Yuji Mai, Cormorant Garamond (500/600, italic)
Key colourspaper #f3ecdd, unpainted #f9f4e8, jiao #161412, nong #2c2926, zhong #56524c, dan #8a857c, qing #beb8aa, vermilion #ce3c26

When to use it

Color palette

SwatchHexRole
Xuan paper#f3ecddThe sheet: ground base (~75 % of the screen), panel paper, misty margin
Unpainted paper#f9f4e8Brightest paper: faces, eyes, collar gap, waterfalls, mist bands, flash state
Jiao (burnt ink)#161412Darkest tone: creature bodies, hair, crest lines, moss dots, text
Nong (thick ink)#2c2926Bold contours, bamboo stalks, grass, needle clusters, bar fill
Zhong (heavy ink)#56524cMid tone: inner blots, shore strokes, ripples, pine trunks, card text
Dan (light ink)#8a857cFar props, robe shading, ground dry strokes, brush handle
Qing (clear ink)#beb8aaPale washes: robe, smoke creature, far peaks, bar tracks
Ground ink#322f2cInk mixed into the paper by the ground shader (density 0.03–0.19)
Vermilion#ce3c26The only colour: seals, plum blossoms, the sash and hair tie, orbit dots
Vermilion deep#a0261aSash shading, blossom centres, seal pressure spots (menu text #a8281a)
Vermilion light#e47052Blossom hearts, seal highlights (#e8583c)
Silk mounting#4e4b46Mounting of hanging scrolls, plaques and the caption bar
Roller#2a2622Scroll rods and rollers (gradient #4a4540 → #141210)
Paper rule#d6cebeThin pale strips between silk and paper on scrolls
Shadow ink#3a3630Soft ground shadows at alpha 0.17–0.34

Rules

Typography

FamilyUseCSS
Ma Shan Zheng 400Titles, clock, counters, floating numbers, seal numeralsfont: 400 40px/1 'Ma Shan Zheng', 'Zhi Mang Xing', serif; letter-spacing: 2px; color: #161412;
Zhi Mang Xing 400Captions, labels, hints — a grass-script feel, often vermilionfont: 400 19px/1.1 'Zhi Mang Xing', cursive; color: #ce3c26;
Yuji Mai 400Card titlesfont: 400 22px/1.15 'Yuji Mai', serif; color: #161412;
Cormorant Garamond 500/600Body copy, card text (italic 600)font: italic 600 18px/1.2 'Cormorant Garamond', Georgia, serif; color: #56524c;

Rendering technique

Baked once (init, ~0.8 s):

  1. Textures: a 512 px fibre tile (2600 curved hairs 5–51 px long, 62 % light at alpha 0.18–0.5, the rest dark at 0.08–0.24), a 256 px paper-tooth noise, a 512 px wash noise, a 256 px granulation tile (white with ink specks) and a 256 px light-fibre pattern.
  2. Every sprite is painted with two tools — brush() and wash() — into its own canvas (characters 4 px per unit, props 3 px, small effects 6–12 px), then the light-fibre pattern is cut out with destination-out at 0.28 (characters) / 0.35 (props) so the ink sits in the paper.
  3. Derived variants per sprite: a mirrored copy, a flash copy (silhouette filled with unpainted paper), a blurred appear copy (5 px) and four dissolve frames.

The brush. A stroke is a list of control points → Catmull-Rom spline (6 steps per segment) → a filled ribbon. Width along the arc length s (fraction u):

The wash. Fill the shape on a scratch canvas → blurred darker / lighter blots source-atop → a blurred rim stroke (the dried edge) → granulation multiplied in → clipped back to the shape (optionally feathered with a blur) → optional vertical mist fade (destination-out gradient) → composited; a blurred copy underneath gives the bleed halo.

Per frame: cached ground chunks, then the core draw order: ground overlay (landed drops, bleed rings, appear stains), collectibles, shadows, y-sorted props and figures, orbiting circles, projectiles, particles, numbers, mist bands (world overlay), and the cached misty margin with inscription (screen overlay). Everything is drawImage of baked canvases.

World and ground

An endless sheet painted per pixel in 256-unit chunks (up to 640 px), built by a generator in 5 ms slices. Fields are sampled on a 16 px grid with approximate signed distances (value minus threshold over gradient length) and interpolated bilinearly.

  1. Paper: #f3ecdd × (0.966 + 0.05 tooth + 0.12 fibres). The fibres are the most visible texture: long pale hairs and a few darker ones.
  2. Pale wash regions (domain-warped fbm, scale 500 units, threshold 0.6): softness varies 1.5–13.5 units, the edge is displaced ±9 units by wash noise and ±5 by fibres (ink feathering into the paper), density 0.03 + 0.09 * exp(-d / (10..36)) — darkest near the edge, fading inward — plus a dried rim of 0.055 about 1.1 units inside the edge where a noise allows, granulated ±50 %. A few wetter pools add 0.06.
  3. Water: ponds (warped fbm, scale 820, threshold 0.625) and thin streams (zero contour of warped noise at scale 860, half width 5.5–10.5 units, masked by a third noise so they thin out and end in the paper). Water is bare paper, 1.2 % brighter, with a shore wash inside (0.07–0.19 fading over 9 units).
  4. Banks: on the land side a wash that is darkest at the water and fades over 8–24 units (0.04–0.17), absent in places, so lakes read as bright shapes framed by ink.
  5. Decals (seamless across chunks, drawn with the brush):
    • long pale dry strokes for the lie of the land: 1–3 per 120-unit cell (42 %), 26–72 units long, 1.8–4.4 wide, dan / zhong at 38–58 %, dry 0.8–0.95;
    • broken shore strokes: points within 3 units of the shore are snapped onto it with one Newton step, then 11–31-unit strokes follow the bank (nong / zhong, dry 0.35–0.75), skipped where a noise is low;
    • ripples: one or two gently waving lines (9–35 units, 0.55–0.95 wide) in open water, horizontal on ponds, along the flow in streams;
    • reeds on the banks (4–8 stalks 7–16 units, some with a cattail dab), grass tufts of 2–4 curved blades in loose clusters (1–43 % chance by noise), clusters of 3–7 horizontal moss dots, rare pebbles and stepping stones, flicked ink droplets, a few vermilion petals.

Characters

All figures face right, are baked per pose and mirrored. The ink is darkest on the creatures; the main character is the lightest figure but carries the only vermilion.

Main character — a wandering calligrapher (about 22 × 30 units, 40 up to the bristle tip, feet at the anchor):

Small creature — ink blot (body 15 × 12.6 units on four legs, about 20 × 17 with hair):

Fast creature — smoke wisp (about 11 × 24 units, hovering 2.5 units):

Large creature — ink beast (about 46 × 40 units):

Props

PropSize (units)Construction
Bamboo3–5 stalks, 38–84 tallJointed segments (5–11 long) with a pressed node bulge and a small dark hook across each joint; branches from upper nodes; leaf groups of 3–5 tapered leaves (7–12 long, 1.7–2.5 wide) hanging in 个 / 介 shapes. Back stalks in dan, front in nong, crown leaves in jiao.
Plum tree~50 × 56A gnarled trunk (5.2 wide, dry 0.55, bleed) with a jiao bark edge and knot dots; angular zig-zag branches in three values, straight new shoots; up to 20 blossoms: vermilion five-petal flowers with ink stamens, ~20 % outline-only, ~20 % buds; petals at the base.
Pine~60 × 72An S-curved trunk (4.4, nong → dan, dry) with a dark edge and 14 bark-scale hooks; four branches and a crown, each ending in a needle wheel: a fan of 13–18 radiating strokes over a pale wash disc, a second smaller wheel and a far pale wheel behind.
Rock18 × 11, 27 × 16, scholar rock 13 × 24Qing wash with a dan blot and a paper-light top, a heavy broken contour on the left and top, a light one on the right, axe-cut texture strokes, 4–8 moss dots on top, a grounding stroke and grass; the tall variant has two holes.
Mountain~90 × 112Rounded peaks in three values (far qing, middle dan, near zhong), each covered with horizontal "Mi dots" gathered along the crest, a broken dry crest line, the wash fading out over the lower half, unpainted mist bands across the slopes, tiny pines on ledges. Variant: two craggy pinnacles with vertical texture strokes and a bare-paper waterfall between them.
Hut~36 × 25A thatched roof wash with downward thatch strokes and a heavy dry ridge stroke, four thin posts, a dark interior with a tiny seated paper figure.
Reeds~16 × 269–12 long tapered stalks in two values, some with a feathery dry plume.
Orchid~40 × 226–8 long leaves that rise, swell and bow outward (width wobble 0.45), two pale flowers with dark heart dots.

Effects and particles

Atmosphere and lighting

UI

Motion and animation

Do and don't

Do

Don't

Implementation recipe

  1. Paper first. Bake a tileable fibre texture (curved hairs, mostly light) and a paper-tooth noise; the ground shader multiplies them into #f3ecdd.
  2. Write brush(ctx, pts, o): spline → arc length → width profile (start taper, end taper, press, wobble) → ribbon fill. Add bleed (blurred wider copy at 32 %) and dry (body + bristles with noise gaps).
  3. Write wash(ctx, shape, o): fill, blurred blots, dried rim, granulation, clip, optional feather and mist fade, optional bleed halo.
  4. Paint the cast at 4 px per unit with 5–12 strokes each: creatures as dark blots with bare-paper eyes; the main character as a pale robe with one bold black stroke and the vermilion sash. Bake 4 walk poses and 2 idle poses, mirror them, derive the paper flash, a blurred appear copy and four dissolve frames.
  5. Paint the props at 3 px per unit, far parts pale first: bamboo, plum, pine, rocks, Mi-dot mountains with mist, a hut, reeds, orchids.
  6. Ground shader: pale wash regions with a dried rim, ponds and streams as bare paper with shore and bank washes; then decals with the same brush (dry land strokes, shore strokes snapped to the bank, ripples, reeds, tufts, moss dots, a few petals).
  7. Effects as baked sprites: drops that land and stay, splash, bleed ring, ensō (small orbiting, large painted with a growing pie clip), ink bead, vermilion seal, flung drop, smoke puff, petals.
  8. Atmosphere: misty margin with a fibre-feathered edge, drifting mist bands, inscription and seals; hurt = ink seeping in.
  9. UI: hanging scroll cards, handscroll plaques, brush-stroke bars with a dry end mask, vermilion seals, brush fonts.

Code

The brush — a pressed, tapering ribbon with optional dry bristles:

// pts: control points [[x, y], ...]; o: { w, c: [r,g,b], c2, a, ta, tb, press, dry, gs }; rnd(): 0..1
function brush(ctx, pts, o, rnd) {
  const P = catmullRom(pts, 6), n = P.length, acc = [0];
  for (let i = 1; i < n; i++) acc.push(acc[i - 1] + Math.hypot(P[i][0] - P[i - 1][0], P[i][1] - P[i - 1][1]));
  const tot = acc[n - 1] || 1, W = [], NX = [], NY = [];
  const ta = o.ta ?? 0.12, tb = o.tb ?? 0.35, ph = rnd() * 9;
  for (let i = 0; i < n; i++) {
    const a = P[Math.max(0, i - 1)], b = P[Math.min(n - 1, i + 1)], l = Math.hypot(b[0] - a[0], b[1] - a[1]) || 1;
    NX.push(-(b[1] - a[1]) / l); NY.push((b[0] - a[0]) / l);
    const u = acc[i] / tot;
    let w = o.w;
    if (u < ta) w *= 0.3 + 0.7 * Math.sqrt(u / ta);                                  // soft entry
    if (u > 1 - tb) w *= 0.04 + 0.96 * Math.pow((1 - u) / tb, 0.6);                  // tapering exit
    if (o.press) w *= 1 + o.press * Math.exp(-(acc[i] ** 2) / (o.w * o.w * 1.2));    // pressed head
    W.push(Math.max(0.04, w * (1 + 0.12 * Math.sin(acc[i] * 0.55 + ph))));
  }
  const ribbon = (i0, i1, o0, o1) => {
    ctx.beginPath();
    for (let i = i0; i <= i1; i++) ctx.lineTo(P[i][0] + NX[i] * W[i] * o0, P[i][1] + NY[i] * W[i] * o0);
    for (let i = i1; i >= i0; i--) ctx.lineTo(P[i][0] + NX[i] * W[i] * o1, P[i][1] + NY[i] * W[i] * o1);
    ctx.fill();
  };
  const c = o.c, c2 = o.c2 || c, dry = o.dry || 0, al = o.a ?? 1;
  ctx.fillStyle = `rgb(${c})`; ctx.globalAlpha = al;
  if (!dry) { ribbon(0, n - 1, -0.5, 0.5); ctx.globalAlpha = 1; return; }
  let ib = 0; while (ib < n - 1 && acc[ib] / tot < 1 - dry * 0.9) ib++;
  if (ib > 1) ribbon(0, ib, -0.42, 0.42);                                             // the loaded body
  const nb = 12, bw = 1.55 / nb, gs = o.gs || o.w * 0.5;
  for (let b = 0; b < nb; b++) {                                                      // bristles run out
    const off = (b + 0.5) / nb - 0.5, edge = Math.abs(off) * 2, seed = rnd() * 1000;
    const life = 1 - dry * Math.pow(rnd(), 0.7) * (0.25 + 0.75 * edge) * 0.9;
    ctx.fillStyle = `rgb(${c.map((v, k) => v + (c2[k] - v) * (off + 0.5))})`;
    ctx.globalAlpha = al * (0.62 + rnd() * 0.38);
    let s0 = -1;
    for (let i = 0; i < n; i++) {
      const u = acc[i] / tot, g = smoothNoise1D(acc[i] / gs * 0.6 + seed);
      const on = u <= life && g > dry * (u * 1.25 - 0.25) + 0.08 * edge;
      if (on && s0 < 0) s0 = i;
      if ((!on || i === n - 1) && s0 >= 0) { if ((on ? i : i - 1) > s0) ribbon(s0, on ? i : i - 1, off - bw / 2, off + bw / 2); s0 = -1; }
    }
  }
  ctx.globalAlpha = 1;
}

Ink bleeding into the paper — a blurred halo under any dark mark:

function bleedUnder(ctx, path, color, widthUnits) {
  const m = ctx.getTransform(), k = Math.hypot(m.a, m.b);      // px per world unit
  ctx.save();
  ctx.filter = `blur(${(widthUnits * k).toFixed(1)}px)`;
  ctx.globalAlpha = 0.35;
  ctx.fillStyle = color;
  ctx.fill(path);
  ctx.restore();
  ctx.fillStyle = color;
  ctx.fill(path);                                               // the crisp ink on top
}

Ground shader core — paper, a pale wash with a dried rim, water as bare paper with banks:

// per pixel: P tooth 0..1, F fibres 0..1, n1/n2 wash noise 0..1, dWash/dWater signed distances in units (> 0 inside)
function inkPixel(P, F, n1, n2, dWash, dWater) {
  const sst = (t) => (t <= -1 ? 0 : t >= 1 ? 1 : ((t + 1) / 2) ** 2 * (3 - (t + 1)));
  const eW = dWater + (n1 - 0.5) * 4, inW = sst(eW / 1.2), land = 1 - inW;
  const eM = dWash + (n1 - 0.5) * 18 + (F - 0.5) * 10;                   // edge feathered by fibres
  const wash = sst(eM / (1.5 + 12 * n2)) * land;
  const rim = Math.exp(-((eM - 1.1) ** 2) / 1.6) * land * Math.min(1, Math.max(0, (n2 - 0.4) * 3));
  let dens = wash * (0.03 + 0.09 * Math.exp(-Math.max(0, eM) / (10 + 26 * n1))) + rim * 0.055;
  dens += inW * Math.exp(-Math.max(0, eW) / 9) * (0.07 + 0.12 * n2);      // shore wash inside the water
  dens += land * Math.exp(-Math.max(0, -eW) / (8 + 16 * n2)) * 0.12;      // bank wash on the land side
  const L = 0.966 + (P - 0.5) * 0.05 + (F - 0.5) * 0.12 + inW * 0.012;
  const paper = [243, 236, 221], ink = [50, 47, 44];
  return paper.map((p, i) => p * L * (1 - dens) + ink[i] * dens);
}

The ensō painted in one movement (glow-up):

function drawEnsoReveal(ctx, ensoSprite, x, y, age) {           // age 0..1
  const sweep = Math.min(1, age * 2.6);
  ctx.save();
  ctx.translate(x, y);
  if (sweep < 1) {
    ctx.beginPath(); ctx.moveTo(0, 0);
    ctx.arc(0, 0, 40, Math.PI * 0.6, Math.PI * 0.6 + Math.PI * 2 * sweep * 0.92);
    ctx.closePath(); ctx.clip();
  }
  ctx.globalAlpha = Math.min(1, (1 - age) * 2.5);
  ctx.drawImage(ensoSprite, -ensoSprite.width / 2, -ensoSprite.height / 2);
  ctx.restore();
}

Adapting it to your project

Performance notes

Copy-paste prompt

Use the Sumi-e Ink art style for my project: East-Asian monochrome ink-wash painting on warm xuan paper.
- Paper #f3ecdd with long visible fibres; brightest paper #f9f4e8; keep most of the screen empty (ma).
- One ink in five tones only: jiao #161412, nong #2c2926, zhong #56524c, dan #8a857c, qing #beb8aa.
- One accent colour only: vermilion #ce3c26 for seals, a few plum blossoms and the main character's sash.
- Draw every shape with a few single brush strokes: pressed start, tapering end, dry-brush streaks where the ink runs out.
- Dark masses bleed into the paper with a soft blurred halo; washes feather into the fibres and dry with a darker edge.
- Water is bare paper framed by pale bank washes and two or three flowing lines; mountains are rounded peaks of horizontal dots that fade into mist.
- Props: bamboo with node hooks and leaf groups, plum branches with vermilion blossoms, pines with needle wheels, rocks with moss dots, a thatched hut.
- Main character: a calligrapher in a pale grey robe held by one bold black stroke, bare-paper face, topknot, vermilion sash tails, a giant brush on the back.
- Creatures: ink blots with bare-paper eyes, pale smoke wisps, a shaggy beast of splashed ink with horns.
- Effects: flung ink drops, splashes, drops that stay on the paper, bleed rings, ensō circles, vermilion seal collectibles and petals.
- Atmosphere: misty unpainted margin, drifting mist bands, an abstract calligraphy column with red seals; no glow, no coloured light.
- UI: hanging-scroll cards with silk mounting and rollers, brush-stroke bars with ragged dry ends, vermilion seals for numbers.
- Fonts: Ma Shan Zheng (titles, numbers), Zhi Mang Xing (captions), Yuji Mai (card titles), Cormorant Garamond (body).