var canvas=document.getElementById("c"); var ctx=canvas.getContext("2d"); var W, H; var colors=[ "#2e942a", "#e0d041", "#31a194", "#ae2c2b", "#3f4187" ]; var background="#fbf4e4"; var limit=5; function choose(array){ var random=Math.floor(array.length*Math.random()); return array[random]; } function generateNoise(opacity) { var noiseCanvas=document.getElementById("noise"); noiseCanvas.width=window.innerWidth; noiseCanvas.height=window.innerHeight; noiseCtx=noiseCanvas.getContext("2d"); var x, y; var number; for (x=0; x