oneshotlm
Compare all models on this prompt →

Matrix digital rain · llama-4-scout

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 · 4 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

create the Matrix digital rain effect, we will use HTML, CSS, and JavaScript. The effect will be achieved by creating a full-screen canvas and using JavaScriptto animate the falling glyphs. First, let's create the `index.html` file: ```bash ```

write index.html (536 bytes)
toolResult

Successfully wrote 536 bytes to index.html

assistant

seems previous response was cut off. Let's continue with the rest of the code the complete `index.html` file: ```html <html> <head> body { margin: 0; background-color: black; } #canvas { width: 100%; height: 100vh; display: block; } </style> </head> <body> <canvas id='canvas'></canvas> <script> var canvas = document.getElementById('canvas'); var ctx = canvas.getContext('2d'); canvas.width = window.innerWidth; canvas.height = window.innerHeight; var glyphs = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; var katakana = '゠ァアィイゥウェエォオカキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶヷヸヹヺ・ーヽヾヿ'; var columns = []; for (var i = 0; i < canvas.width; i++) { columns.push(0); } function draw() { ctx.fillStyle = 'rgba(0, 0, 0, 0.05)'; ctx.fillRect(0, 0, canvas.width, canvas.height); for (var i = 0; i < columns.length; i++) { var x = i; var columns[i]; if (Math.random() < 0.05) { columns 0; } ctx.font = '16px'; ctx.fillStylegreen'; ctx.textAlign = 'center'; ctx.textBaseline = 'top'; for (var j = 0; j < 10; j++) { var glyph = katakana.charAt(Math.floor(Math.random() * katakana.length)); ctx.fillText(glyph, x, y + j *); if (j === 0) { ctx.fillStyle = 'rgba(0, 255, 0, 1)'; } else { ctx.fillStyle = 'rgba(0, 255, 0, ' + (1 * (10 - j)) + ')'; } } columns[i] += 1; if (columns[i] > canvas.height) { columns[i] = 0; } } AnimationFrame(draw); } draw(); </script> </</html> ``` This code creates a full-screen canvas and uses to animate the falling glyphs. The `draw` function is called repeatedly using `requestAnimationFrame`, which clears the canvas, draws the glyph and updates their positions. The glyphs are chosen randomly from theana character set, and their opacity decreases as they fall, creating a trailing fade effect. The leading character is brighter than the rest.

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

modelllama-4-scout
vendorMeta · Llama
harnesspi-agent
generated2026-08-01

EVALUATION

1/5 broken

Blank white screen throughout; JS syntax error prevented the Matrix rain from rendering at all.

off-prompt

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 motion0.0%
on click0.0%
on drag0.0%
on wheel0.0%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread0 / 255
console errors0
js errors
  • Unexpected token '}'

METRICS

runtime11.4s
tokens in3.3k
tokens out932
cached0
cost / run$0.0006