whisper.cat/weboasis/js/canvas/matrix.min.js.old

1 line
875 B
JavaScript
Raw Normal View History

2023-10-05 23:28:32 +11:00
function canvasSupport(a){return!!a.getContext}function canvasApp(){function b(){j.fillStyle="rgba(0,0,0,.07)",j.fillRect(0,0,e,k),j.fillStyle=color,j.font="10px monospace",a.map(function(b,c){text=[...[,]].map(()=>Math.random().toString(36)[2]).join("").toLowerCase(),x=10*c+10,j.fillText(text,x,b),a[c]=b>100+3e4*Math.random()?0:b+10})}if(document.getElementById("myCanvas")){var c=document.getElementById("myCanvas");c.parentNode.removeChild(c)}var d,f=Math.max(window.screen.width,window.innerWidth),g=Math.round(f/10),h=document.createElement("canvas");if(h.id="myCanvas",h.classList="background",document.getElementById("canvasContainer").appendChild(h),canvasSupport(h)){var j=h.getContext("2d"),e=h.width=window.innerWidth,k=h.height=window.innerHeight,a=Array(g).join(0).split("");"undefined"!=typeof d&&clearInterval(Game_interval),d=setInterval(b,42)}}canvasApp();