1829910-1.html (614B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="UTF-8"> 5 <script> 6 window.onload = () => { 7 const c = document.createElement("canvas") 8 document.documentElement.appendChild(c) 9 const cx = c.getContext("2d") 10 c.width = window.innerWidth 11 c.height = window.innerHeight 12 const w = 16 13 const cols = new Array(c.width / w).fill(0) 14 cx.fillStyle = "rgba(0, 0, 0, 0.05)" 15 cx.fillRect(0, 0, c.width, c.height) 16 cx.fillStyle = "#0F0" 17 cols.forEach((col, i) => { 18 cx.fillText(".", i * w, col * w) 19 cols[i]++ 20 if (col * w > c.height && Math.random() > 0.975) 21 cols[i] = 0 22 }); 23 } 24 </script> 25 </head> 26 </html>