
Rainy-night ramen
AnimationRainy-Night RamenOpen →<role> You are a pixel artist and a creative coder. Make a pixel animation in a single stand-alone HTML file with vanilla JavaScript and Canvas 2D, and capture it as an MP4. No external images, libraries or network requests. </role> <direction> A tiny ramen stall on a rainy night: a red-and-white striped awning, a neon "RAMEN" sign with a loose connection that flickers now and then, a red lantern swinging; the cook in a white headband stirring the pot, steam rising, lifting noodles out once at second 7; a customer with their back to us slurping at the counter, head dipping every 1.5 seconds; a black cat at the end of the counter flicking its tail and blinking now and then; a passer-by with an umbrella crossing the whole frame over 12 seconds; windows lit in the buildings behind, one going dark now and then; reflections of the lantern and the sign on the wet street, small rings where raindrops hit the puddles. Forbidden: anti-aliasing, gradients, shadowBlur, blurry glows, fractional coordinates, anything that looks like shrunken vector art. </direction> <build> 1. Draw everything on a 160×90 logical canvas and scale it up by a whole number (12× = 1920×1080), imageSmoothingEnabled = false. 2. A fixed palette of about 36 colors; every pixel takes its color from it; the sky's shading is a two-color checkerboard dither, and the glows are dithered rings too. 3. One function per layer (sky, city, stall, sign, chef, pot, counter, guest, noren, lantern, cat, street, walker, rain), painted in order. 4. Characters are built from character art: each letter stands for a palette color. Motion is parametric (arm angle, lifting or not, blink). 5. Poses update only 8 times a second (quantize time to 1/8 s); rain, steam and reflections move every frame. 6. Seeded randomness: generate the raindrops' starting points and speeds once at the start, then compute positions from time alone; every drop falls a whole number of laps in 12 seconds and the passer-by crosses exactly once, so the loop is seamless. 7. The page exposes window.render(t): the picture depends on t alone, no requestAnimationFrame, no state between frames. 8. Open the page with Playwright, call render(i / 30) frame by frame and screenshot (360 frames), feed them to ffmpeg for the MP4. 9. Synthesize the music in Python with numpy: an 80 BPM lo-fi tune (triangle-wave chords, square-wave plucks, a sine kick), low-passed noise for rain, a 120 Hz hum when the sign flickers; 12 seconds, seamless. </build> <gotchas> - After each layer, render a still and look: is a character hidden behind the foreground, is the subject big enough. - Don't shrink a system font for text; draw the sign's letters yourself as 5×7 pixel glyphs. </gotchas>
Mia's tips
- I used Claude Opus 5.5 in Claude Code: it writes the code, screenshots the result and fixes it, and I just give notes.
- My first version flopped: the curtain hid the cook's face and the passer-by was tiny. I replied "Don't let the curtain cover the face, make the passer-by bigger", and the second version was right. So don't panic if the first try is off; just say what's wrong.
- Want a different scene? Just edit the <direction> section.
- I've had Codex make the same kind of animation; it came out drier, with less movement. For this kind of work most people agree Claude is the best right now, and it's what I use.
Pixel wizard
Create a single stand-alone HTML file that draws a pixel-art wizard casting a spell on a loop, with vanilla JavaScript and Canvas 2D. No external images, libraries or network requests. Picture - Draw on a small 128×96 canvas first, then scale up by a whole number to fill the window, centered; smoothing off (imageSmoothingEnabled = false, plus image-rendering: pixelated in CSS). - Everything on integer coordinates: no half pixels, anti-aliasing, gradients or shadowBlur. - A fixed palette of about 24 colors: deep blues and purples for the night sky, warm tones for the robe, three or four bright magic colors. Every pixel takes its color from this box. The wizard - Built from blocks and runs of pixels, about 24×32: a tall hat with a folded tip, a long beard, a two-tone robe with a dark outline, a staff with a gem on top. - The pose is parametric: staff angle, how high the hand is, head tilt, how much the robe sways. Parameters change smoothly, but every frame snaps to the pixel grid, so it reads like 8–12 fps pixel animation. Action - One loop: idle (gentle bob, beard drifting) → charge (staff raised, gem flaring, sparks spiraling inward) → cast (one hard flash, a bolt flying across the screen, the screen shaking by 1–2 pixels) → recover, back to idle. Ease between key poses. - Particles are allocated once and reused: orbiting the gem while charging, bursting outward on the cast, going white → magic color → dark before they vanish. Particle positions snap to the pixel grid too. Scene - Simple background: a dark night sky, a few one-pixel twinkling stars, a moon, stone ground. The wizard's silhouette must read at a glance. - The gem gives the wizard a one-pixel rim light, brighter while charging and casting. What I want: crisp pixels at any window size, a seamless loop, and the feel of a polished 16-bit game character animation rather than shrunken vector art.
To capture it as a video, add this line at the end:
Don't play it in real time with requestAnimationFrame. Expose window.render(t) instead, with the picture depending on time t alone (seeded randomness, no state between frames); I'll screenshot it frame by frame with Playwright to make a video.
Mia's tips
- Same setup again: Claude Opus 5.5 in Claude Code.
- My first wizard looked like a few triangles glued together. Not cute. "Draw light and shade, add a rim light and a flash on the cast" made the second version look right.
- If you only want to watch it in the browser, the first prompt is enough; add the second one when you want to capture it as video.
Up next
WatchedCan AI Reverse Engineer Any App? I Gave It a Mystery BinaryAI Reviews · Oct 19
WatchedOpus 5.5 Motion Graphics: Zero After Effects, All CodeMade with AI · Oct 26
WatchedWhy Every AI-Made Video Looks the SameMade with AI · Oct 20
WatchedI Made an Anime Music Video With Claude From One PromptMade with AI · Oct 21
WatchedClaude's Riemann Hypothesis Proof Checks Out. Nobody Can Read It.How AI Works · Nov 21More videos
All 78
WatchedClaude Opus 5.5 vs GPT-6 Astra: Who Can Beat the Original Celeste First?AI Showdowns · Nov 3
WatchedAI Jailbreaking Explained: Does the Grandma Trick Still Work?How AI Works · Nov 1
WatchedIs GPT-6.2 Astra Really the Worst Model Ever? I Tested ItAI Reviews · Nov 17
WatchedOpenAI and Claude Just Disproved a Famous Math Conjecture. Is P = NP?AI Stories · Oct 30
WatchedI Let Opus 5.5 and GPT-6 Astra Take Over BlenderMade with AI · Oct 31
WatchedOpenAI's "Alien Math": What Did AI Actually Solve?AI Stories · Oct 25
WatchedWhat Do Q4 and Q8 Mean? I Squeezed One AI Into 9 VersionsHow AI Works · Oct 31
WatchedClaude Fable 5.2 Rebuilt Da Vinci's Self-Propelled Cart From One PageMade with AI · Nov 15