const target = document.querySelector('canvas'); const ctx = target.getContext('2d'); export let lolState = false; let scale = 0.7; function analogLikeNoise(){ let tH = target.height; let tW = target.width; //console.log('window dimensions :', tH, tW) const img = ctx.createImageData(tW, tH); let offset = 0; let index = 0; let brightness = 0; for(let x = 0; x1024){ offset = 0; } } let time = 0 function scanlines(){ time += 0.05; let tH = target.height; let tW = target.width; //console.log('window dimensions :', tH, tW) const img = ctx.createImageData(tW, tH); let index = 0; for(let y = 0; y