memoscan
← all memos

Memo 0xef9c3263…441df2 on Ethereum

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Black & White Noise</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body, html { width: 100%; height: 100%; overflow: hidden; background: #000; } canvas { display: block; width: 100%; height: 100%; } </style> </head> <body> <canvas id="noise"></canvas> <script> const canvas = document.getElementById('noise'); const ctx = canvas.getContext('2d'); function resize() { canvas.width = window.innerWidth; canvas.height = window.innerHeight; } function generateNoise() { const imageData = ctx.createImageData(canvas.width, canvas.height); const data = imageData.data; for (let i = 0; i < data.length; i += 4) { const value = Math.random() > 0.5 ? 255 : 0; data[i] = value; // Red data[i + 1] = value; // Green data[i + 2] = value; // Blue data[i + 3] = 255; // Alpha } ctx.putImageData(imageData, 0, 0); } function animate() { generateNoise(); requestAnimationFrame(animate); } window.addEventListener('resize', resize); resize(); animate(); </script> </body> </html>