miwale

Rubber Hose 1930s — Game Art Style Spec

Black-and-white 1930s animation: ink figures with elbow-less rubber-hose limbs, white gloves and pie-cut eyes, projected through grainy, scratched film.

The look of an early sound cartoon, rebuilt from code. Every figure is a round, bouncy ink shape whose arms and legs are single bowed curves — rubber hoses with no elbows and no knees — ending in puffy four-finger white gloves and oversized shoes. Eyes are pie-cut ink ovals with a wedge missing. There is no colour: one ink, four warm greys and two whites. The whole world keeps time: trees sway, daisies bob, cottages squash and the main character taps a toe on one shared 120 bpm beat. The ground is a flat grey studio wash with crisp ink contour lines and tiny ink decals. On top sits a projector: grain, dust, hairs, scratches, flicker, a jumping gate and a heavy vignette with rounded gate corners, all stepped at 24 frames per second. UI panels are dark title cards with double paper rules and Art-Nouveau corner curls.

At a glance

FamilyCartoon · Vintage animation
Moodjaunty, nostalgic, musical, mischievous, slightly eerie
Best forretro top-down action with crowds of characters, vintage cartoon platformers and brawlers, music or rhythm projects, spooky-cute or carnival themes, nostalgic title screens
RendererCanvas 2D, procedural: two-pass part painter (merged ink outline → flat greys) → baked multi-frame sprites; per-pixel signed-distance ground; baked film layer
Pixel artNo — native resolution, sprites baked at 3–6 px per world unit
Complexity4/10 — outlines and shading are automatic; good rubber-hose animation is the craft
FontsLimelight 400, Rye 400, Special Elite 400 (Google Fonts)
Key coloursink #16120e, soot #3a342d, slate #6d665b, ash #a0988a, fog #cdc5b5, paper #efe9dc, white #faf7ef, face #e6dece, ground #cfc8b9

When to use it

How it differs from its base style cartoon. Both share the same machinery: a two-pass part painter that gives every sprite one merged outline, baked frames with flash copies, a cel crescent per part and lots of squash & stretch. cartoon is a candy-bright modern vector look — deep-plum outlines, saturated fills, glossy highlights, a green play-mat and chunky toy UI. Rubber Hose drops every hue: pure ink outlines, four warm greys and two whites. Limbs become stroked elbow-less curves with gloves and big shoes instead of stubby capsules. Eyes are pie-cut instead of googly. Walks bounce through 8 frames instead of hopping. Props dance in sync to a beat. The ground gets ink contour lines. A full projector layer (grain, scratches, dust, flicker, weave, vignette) sits over everything, and the UI is ornamental title cards instead of rounded pills. Pick cartoon for cheerful, colourful and contemporary. Pick Rubber Hose for nostalgic, musical and monochrome.

Color palette

SwatchHexRole
Ink#16120eAll outlines, black bodies, limbs, pupils, mouths, notes, ground contours
Soot#3a342dTree trunks, roofs, toadstool caps, dark sweater stripes, inner ears
Slate#6d665bShorts, derby hats, barrels, tongues, grey creatures; shade #4f493f
Ash#a0988aTree canopies, hill mounds, fence rails, coin emboss
Fog#cdc5b5The crescent shade of every white part; puffs
Paper#efe9dcWalls, light stripes, coins, UI rules and UI text
Highlight White#faf7efGloves, eye whites, bow tie, shines, petals
Face#e6deceFace masks of ink figures; shade #c9c0ae
Shoe#d9d1c1Big shoes; shade #a59d8e
Sheet#f4efe4Ghost sheet; shade #cbc3b3
Ground Base#cfc8b9Base wash (~45 % of the screen)
Meadow Wash#b2aa9aMeadow regions, lighter rim #bfb8a9
Hummock Wash#928a7cDark rolling hills, rim #a39b8c, inner contour ring
Path#e4ddcdWinding paths, rim #d6cebe
Pond#565047Ponds, rim #726b60, paper ripples
Sepia Grade#978c7bcolor blend at 74 % — only over foreign colours
Gate Black#0c0a08Vignette, gate corners, dark dust and scratches
Title Card#17130fUI panels and cards
Caption Grey#b9b1a1UI labels

Rules

Typography

FontUseCSS
Limelight 400Titles, counters, the clock, floating numbers, bar capsfont: 400 34px/1.05 'Limelight', Georgia, serif; letter-spacing: .06em; color: #efe9dc; text-shadow: 2px 3px 0 #000;
Rye 400Card namesfont: 400 21px/1.15 'Rye', Georgia, serif; color: #efe9dc; text-shadow: 2px 2px 0 #000;
Special Elite 400Body copy, labels, hints — the typewritten intertitlefont: 400 15px/1.3 'Special Elite', 'Courier New', monospace; color: #cfc7b7;

Rendering technique

Baked once (init):

The part painter. A sprite is a function that declares parts back to front. It runs twice on the same canvas:

  1. Outline pass: every part's path is stroked with width 2 × 1.0 and filled in ink. Overlaps merge into one silhouette outline.
  2. Fill pass: each part is clipped to itself and filled with its shade grey. Then it is clipped again to itself shifted up-left (0.4–2.6 units) and filled with the base grey, which leaves one crescent on the lower right. Details (eyes, stitches, buttons) and white shines follow.

Limbs (hose) are stroked quadratic curves that take part in both passes (outline width = limb width + 2). The flash pass replaces every fill with white (#fbf8f0 / #e3dccd). For ghosts it uses negative ink (#1d1813 / #3a342d). Face details are kept in the flash.

Per frame:

  1. Ground chunks (cached).
  2. Spawn puddles.
  3. Collectibles.
  4. Ink drop shadows.
  5. Y-sorted props and figures (props are skewed and scaled by the beat).
  6. Orbiting birds, notes, particles, numbers.
  7. Floating ambient notes.
  8. The film layer on the display canvas: optional grade → one baked film blit → dust → scratches → cue mark.

World and ground

A flat, painted studio background seen from above. Noise fields are sampled on a 4-unit grid per 256-unit chunk. Each pixel gets a signed distance value / |gradient| to every region edge. That gives three things:

Dark hummocks get a second, fainter ring 5.5 units inside (ponds at 4 units). That turns them into rolling hills.

Layer (bottom → top)FillRimExtra
Base wash#cfc8b9—±4 % brightness tint, period ~1400 u
Meadow wash#b2aa9a#bfb8a9, 2.4 unoise period ~440 u
Dark hummocks#928a7c#a39b8c, 2.8 uinner ring at 5.5 u, alpha 0.45
Winding path#e4ddcd#d6cebe, 1.6 uzero-contour of 1600-u noise → even width
Ponds#565047#726b60, 2.6 uinner ring 4 u; kept away from paths

Decals (jittered 11-unit grid, only where the material is uniform for 4.5 units):

Characters

All figures face right and are mirrored for left. Size: the main character is ~20 units wide and ~36 tall. Shadows are solid ink ellipses at 36 % opacity.

Main character — a jaunty ink cat-fellow.

Small creature — a hopping imp. About 13 wide, 17 tall (drawn at 1.12).

Fast creature — a sheet ghost.

Large creature — the big bully. About 46 wide, 60 tall.

Props

PropLook
Curly treeWavy soot trunk (hose 3.3), cloud canopy of 6 ash circles with a slate crescent, 5 ink spiral curls, fog highlight arcs
Swirled poplarTall slate flame shape with 4 ink chevron bands and a curl at the tip
Bare curly treeSoot trunk with four branches, each ending in a spiral curl
CottagePaper walls slightly out of square, a soot roof with scalloped shingle rows, a slate chimney with three curly smoke puffs, windows like sleepy eyes (half-drawn slate shade), a door like a mouth
Crooked houseTall, leaning, with clapboard lines, a round attic window and a steep scalloped roof
Picket fenceFive white pickets, each leaning differently, on two ash rails
Daisy clumpThree smiling daisies (9 white petals, ink centre with two white eyes and a smile) on ink stems with slate leaves
Hill moundLow ash dome with a slate crescent, a fog highlight ridge, ink tufts along the top and a curl
Street lampInk post with curly scroll arms and a white lantern; a soft white radial glow flickers at 24 fps
Barrel / crateSlate barrel with ink hoops and ash staves; ash crate with an ink X brace
ToadstoolsPaper stems under soot caps with paper spots, two or three in a cluster

The dance. All props share one beat at 120 bpm. With q as the squash pulse and sway as the alternating swing:

The skew is anchored at the base (setTransform(S·sx, 0, −skew·S·sy, S·sy, x, y)).

Effects and particles

Atmosphere and lighting

The projector runs on the display canvas after everything else. It steps at 24 fps: tick = floor(time × 24), and every random choice is a hash of the tick.

  1. Grade. globalCompositeOperation = 'color' with #978c7b at 74 % keeps luminance but replaces hue and saturation. The native palette is already graded, so this pass only runs while other styles' elements are on screen.
  2. Film layer (one blit). Baked per screen size at grain resolution (1 grain px = round(H/900 × 1.3) display px), in 3 variants. Each texel pre-composites three layers:
    • a flat flicker: −4.5 %, 0 or +3 % brightness;
    • the vignette: radial ink, alpha 0 → 0.18 → 0.48 → 0.76 from 40 % to 102 % of the half diagonal, centred at 48 % height;
    • the rounded gate: corner radius 7.5 % of the height, blurred, 94 % black;
    • grain: white/dark specks, alpha ≤ 0.21.

    Each tick picks a variant (bright flashes are rare) and a ±3 px offset. The vertical offset doubles as gate weave: the frame edge jumps by about a pixel.

  3. Dust: 0–4 specks (ellipses 0.8–3.6 px) or curly hairs per tick, black or white, alpha 0.55–0.9, never repeated in the next frame.
  4. Scratches: 3 slots. Each lives 14, 25 or 36 film frames, is active 42 % of the time and jitters ±1.5 px sideways. Two slots are white, one is black; alpha 0.16–0.34.
  5. Cue mark: a black dot with a pale ring, top right, 5 frames every 30 s.

Light inside the scene is implied from the top-left (shines top-left, crescents bottom-right). The only emitted light is the lamp glow.

UI

Motion and animation

Do and don't

Do

Don't

Implementation recipe

  1. Palette first: ink, 4 warm greys, 2 whites, plus face/shoe/sheet tones. Nothing else.
  2. Painter: write the two-pass part painter (part for closed shapes, hose for limbs, detail for faces). One outline weight (1.0 u), one crescent per part.
  3. Signature parts: pieEye, glove, shoe, hosePath(x1, y1, x2, y2, bend).
  4. Main character: a pose function returning bob, lean, limb end points and bends per frame. Bake 8 walk + 2 idle + 2 run + 1 recoil frames, each normal + flash, mirrored.
  5. Creatures: imp (6 hop frames × 3 tones), ghost (6 wobble frames, negative flash, bottom fade), bully (4 stomp frames).
  6. Props: the same painter; draw them with a base-anchored skew + scale from the shared beat.
  7. Ground: noise fields → signed distance → fill, lighter rim, centred ink contour, inner contour ring for hills → ink decals.
  8. Effects: notes, coin, diamond, bird, POW, puffs with spirals, stars, ink drops; give each a pop / fade curve.
  9. Film: bake 3 film-layer variants per screen size and blit one per frame with a tick-hashed offset. Then dust, scratches and a cue mark. Grade only foreign colours.
  10. UI: an ornamental SVG border-image for all panels, a film-strip bar, Limelight / Rye / Special Elite.

Code

Two-pass painter with rubber-hose limbs

const INK = '#16120e', OL = 1.0;
function Painter(ctx, mode) { this.c = ctx; this.mode = mode; }       // mode: 'outline' | 'fill'
Painter.prototype.part = function (shape, fill, o = {}) {
  const c = this.c; c.beginPath(); shape(c);
  if (this.mode === 'outline') { c.lineWidth = OL * 2; c.strokeStyle = c.fillStyle = INK; c.stroke(); c.fill(); return; }
  c.save(); c.clip();
  c.fillStyle = o.shade || fill; c.fillRect(-500, -500, 1000, 1000);   // shade everywhere…
  if (o.shade) {                                                          // …lit colour clipped to the shifted shape
    c.beginPath(); c.save(); c.translate(o.sh[0], o.sh[1]); shape(c); c.restore(); c.clip();
    c.fillStyle = fill; c.fillRect(-500, -500, 1000, 1000);
  }
  c.restore();
};
function ctrl(x1, y1, x2, y2, bend) {                                     // the bow: move the middle sideways
  const dx = x2 - x1, dy = y2 - y1, l = Math.hypot(dx, dy) || 1;
  return [(x1 + x2) / 2 - (dy / l) * bend, (y1 + y2) / 2 + (dx / l) * bend];
}
Painter.prototype.hose = function (x1, y1, x2, y2, bend, w, col) {      // a limb – never an elbow
  const c = this.c, q = ctrl(x1, y1, x2, y2, bend);
  c.beginPath(); c.moveTo(x1, y1); c.quadraticCurveTo(q[0], q[1], x2, y2);
  c.lineWidth = this.mode === 'outline' ? w + OL * 2 : w;
  c.strokeStyle = this.mode === 'outline' ? INK : col; c.stroke();
  return Math.atan2(y2 - q[1], x2 - q[0]);                               // end direction -> glove angle
};
function paint(ctx, fn) { ctx.lineCap = ctx.lineJoin = 'round'; fn(new Painter(ctx, 'outline')); fn(new Painter(ctx, 'fill')); }

Pie-cut eye and the walk pose

function pieEye(c, x, y, rx, ry, faceColour) {
  c.save(); c.translate(x, y);
  c.fillStyle = INK; c.beginPath(); c.ellipse(0, 0, rx, ry, 0, 0, Math.PI * 2); c.fill(); c.clip();
  c.fillStyle = faceColour;                                               // the wedge shows the face behind
  c.beginPath(); c.moveTo(rx * 0.15, -ry * 0.12); c.lineTo(rx * 1.4, -ry * 1.05); c.lineTo(rx * 1.4, -ry * 0.25); c.fill();
  c.restore();
}
function walkPose(f) {                                                    // f = 0..7
  const ph = (f / 8) * Math.PI * 2, s = Math.sin(ph), cc = Math.cos(ph);
  const up = Math.max(0, cc), upB = Math.max(0, -cc);
  const bob = -1.8 * (1 - Math.abs(s));                                   // two bounces per cycle
  const leg = (x, lift) => [x, -3 * lift, lift > 0.05 ? -(1.1 + 2.6 * lift) : 1.0];  // foot x, y, bend
  return { bob, near: leg(1.5 + 4.7 * s, up), far: leg(-0.9 - 4.7 * s, upB),
    nearHand: [2.6 - 4.4 * s, -9 + bob, 2.4 * cc], farHand: [-1.6 + 4.4 * s, -9.4 + bob, -2.4 * cc] };
}

The shared beat for dancing props

function beat(time) {
  const b = time * 2, ph = b - Math.floor(b);                             // 120 bpm
  const q = Math.max(0, Math.cos(ph * Math.PI)) ** 6 + Math.max(0, -Math.cos(ph * Math.PI)) ** 6;
  return { q, sway: Math.cos(b * Math.PI) };
}
function drawDancing(ctx, sprite, x, y, S, amp, time) {                   // base-anchored skew + squash
  const { q, sway } = beat(time), sx = 1 + amp * 0.7 * q, sy = 1 - amp * q;
  ctx.setTransform(S * sx, 0, -sway * amp * S * sy, S * sy, x * S, y * S);
  ctx.drawImage(sprite.canvas, -sprite.ax, -sprite.ay, sprite.w, sprite.h);
}

The projector: one baked film layer per screen size

function makeFilmLayers(W, H, g) {                                        // g = grain px size
  const w = Math.ceil(W / g) + 8, h = Math.ceil(H / g) + 8;
  const base = document.createElement('canvas'); base.width = w; base.height = h;
  const b = base.getContext('2d'), R = Math.hypot(w, h) / 2;
  const v = b.createRadialGradient(w / 2, h * 0.48, R * 0.4, w / 2, h * 0.48, R * 1.02);
  [[0, 0], [0.55, 0.18], [0.85, 0.48], [1, 0.76]].forEach(([t, a]) => v.addColorStop(t, `rgba(14,11,8,${a})`));
  b.fillStyle = v; b.fillRect(0, 0, w, h);
  // …rounded gate (even-odd rect minus round rect, blurred), then per texel: flicker ∘ vignette ∘ grain
  return [-0.045, 0, 0.03].map((flicker) => bakeGrainOver(base, flicker));
}
function drawFilm(ctx, layers, W, H, g, time) {
  const tick = Math.floor(time * 24), h = (k) => hash(tick, k);           // 24 fps cadence
  const L = layers[h(2) < 0.62 ? 1 : h(3) < 0.6 ? 0 : 2];
  const weave = Math.round(Math.sin(time * 2.1) + (h(1) - 0.5));          // ~1 px gate jump
  const ox = 4 + Math.round((h(4) - 0.5) * 6), oy = 4 + Math.round((h(5) - 0.5) * 6) - weave;
  ctx.imageSmoothingEnabled = false;
  ctx.drawImage(L, ox, oy, Math.ceil(W / g), Math.ceil(H / g), 0, 0, Math.ceil(W / g) * g, Math.ceil(H / g) * g);
  // then 0–4 dust specks / hairs and up to 3 long scratches, all hashed from `tick`
}

Adapting it to your project

Performance notes

Copy-paste prompt

Use the Rubber Hose 1930s art style for my project:
- Pure black-and-white early-1930s cartoon look: ink #16120e outlines, fills only in warm greys
  #3a342d, #6d665b, #a0988a, #cdc5b5 and whites #efe9dc / #faf7ef. No hue anywhere.
- Characters: round ink bodies with pale face masks (#e6dece), pie-cut eyes (ink ovals with a wedge cut out),
  elbow-less rubber-hose limbs (one bowed curve per limb), puffy white four-finger gloves and big pale shoes.
- One merged ink outline per figure (outline pass at 2x weight, then fills), one grey crescent per part,
  thin white rim shines on black parts.
- 8-frame bouncy walk with two bounces per cycle; limbs bow like noodles; strong squash & stretch.
- Everything idle dances on one shared 120 bpm beat: props squash on the beat and sway from beat to beat.
- Ground: flat grey washes (#cfc8b9 base, #b2aa9a meadows, #928a7c hills, #e4ddcd paths) with a lighter
  inner rim and a crisp 0.8-unit ink contour; tiny ink tufts, curls, hatch strokes and daisies.
- Props: curly trees with spiral curls, cottages with eye-like windows and curly smoke, picket fences,
  smiling daisies, curly street lamps.
- Effects: music-note projectiles, POW bursts, curly cloud poofs, white stars, ink drops.
- Atmosphere at 24 fps: grain, dust, hairs, scratches, flicker, ~1 px gate weave, heavy vignette with
  rounded projector-gate corners, faint silver-sepia tone.
- UI: dark title cards with double paper rules and Art-Nouveau corner curls; Limelight for numbers and
  titles, Rye for card names, Special Elite for body text; a film-strip progress bar.