oneshotlm
Compare all models on this prompt →

Matrix digital rain · kimi-k2.5

Create the Matrix digital rain effect on a full-screen black canvas: columns of falling green katakana glyphs with a trailing fade and a brighter leading character.

⛨ sandboxed Open in new tab ↗
transcript · 6 messages
user

Create the Matrix digital rain effect on a full-screen black canvas: columns of falling green katakana glyphs with a trailing fade and a brighter leading character.

assistant
thinking
The user wants a Matrix digital rain effect in a single HTML file. Key features:
- Full-screen black canvas
- Columns of falling green katakana glyphs
- Trailing fade effect
- Brighter leading character (the "head" of each column)
- Self-contained, no external resources

I'll create:
1. A canvas element taking full screen
2. JavaScript to handle the animation
3. CSS for full-screen styling

The effect:
- Matrix uses Katakana characters (Japanese phonetic alphabet)
- Characters fall from top to bottom
- Each column has a "head" that's brighter white/green
- Trailing characters fade out
- Random speeds and resets

Implementation approach:
- Canvas 2D context
- Set canvas size to window size
- Array of drops (one per column)
- Font size determines column width
- Characters: Katakana Unicode range (U+30A0 to U+30FF)
- Each frame: slight fade of entire canvas (creates trails), then draw new characters
- Leading character gets brighter color

Let me write this:
write /workspace/index.html (3898 bytes)
toolResult

Successfully wrote 3898 bytes to /workspace/index.html

assistant
thinking
The Matrix rain effect has been created. Let me verify the file was written correctly by reading it back.
read {"path":"/workspace/index.html"}
toolResult

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Matrix Digital Rain</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { background: #000; overflow: hidden; } canvas { display: block; } </style> </head> <body> <canvas id="matrix"></canvas> <script> const canvas = document.getElementById('matrix'); const ctx = canvas.getContext('2d'); // Set canvas to full screen canvas.width = window.innerWidth; canvas.height = window.innerHeight; // Matrix characters (Katakana + some Latin numbers/symbols) const chars = 'アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン0123456789'; const fontSize = 16; const columns = Math.floor(canvas.width / fontSize); // Array to track the Y position of each column's drop const drops = []; for (let i = 0; i < columns; i++) { // Randomize initial positions so they don't all start at top drops[i] = Math.random() * -100; } function draw() { // Semi-transparent black overlay creates the fade/trail effect ctx.fillStyle = 'rgba(0, 0, 0, 0.05)'; ctx.fillRect(0, 0, canvas.width, canvas.height); ctx.font = fontSize + 'px monospace'; for (let i = 0; i < drops.length; i++) { // Random character const char = chars[Math.floor(Math.random() * chars.length)]; // Leading character - brighter ctx.fillStyle = '#FFF'; ctx.fillText(char, i * fontSize, drops[i] * fontSize); // Trailing characters - matrix green (drawn on previous frames, naturally trail behind) // The fade effect handles the trail visually // Move drop down drops[i]++; // Random reset when off screen or randomly if (drops[i] * fontSize > canvas.height && Math.random() > 0.975) { drops[i] = 0; } } // Draw the "matrix green" trail behind the white head // We need to redraw trailing chars in green for proper effect for (let i = 0; i < drops.length; i++) { ctx.fillStyle = '#0F0'; // Draw a few characters behind the head in green for (let j = 1; j <= 5; j++) { if (drops[i] - j >= 0) { const trailChar = chars[Math.floor(Math.random() * chars.length)]; const alpha = 1 - (j * 0.15); ctx.fillStyle = `rgba(0, 255, 0, ${alpha})`; ctx.fillText(trailChar, i * fontSize, (drops[i] - j) * fontSize); } } } } // Animation loop setInterval(draw, 35); // Handle resize window.addEventListener('resize', () => { canvas.width = window.innerWidth; canvas.height = window.innerHeight; const newColumns = Math.floor(canvas.width / fontSize); // Adjust drops array size if (newColumns > drops.length) { for (let i = drops.length; i < newColumns; i++) { drops[i] = Math.random() * -100; } } else if (newColumns < drops.length) { drops.length = newColumns; } }); </script> </body> </html>

assistant
thinking
The file looks good. It has:
- Full-screen canvas with black background
- Katakana characters plus numbers
- Falling columns effect
- Fade trail using semi-transparent overlay
- Brighter leading character (white)
- Green trailing characters with fade opacity
- Responsive resize handling
- No external dependencies

This should create the classic Matrix digital rain effect.

Created **index.html** with the Matrix digital rain effect: **Features:** - Full-screen black canvas that resizes with the window - Falling columns of Katakana glyphs + numbers - Semi-transparent overlay creates the trailing fade effect - White leading character with green trailing characters (fading opacity) - Monospace 16px font for that authentic terminal look - ~35ms animation loop for smooth falling motion Open `index.html` in a browser to see the effect.

TAKE IT TO CODE

A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.

RUN

modelkimi-k2.5
vendorMoonshot · Kimi
harnesspi-agent
generated2026-07-22

EVALUATION

4/5 working

Convincing Matrix digital rain with green katakana columns, fade trails, and bright leading chars; continuously animates but isn't interactive.

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion45.8%
on click46.1%
on drag45.3%
on wheel41.8%
on enter + space42.5%
on arrow keys45.2%
on w/a/s/d44.3%
frame spread18.9 / 255
console errors0
js errors none

METRICS

runtime43.0s
tokens in2.6k
tokens out1.5k
cached4.5k
cost / run$0.0044