Matrix1 HTML
Matrix1 HTML
<head>
<style>
/*basic reset */
*{
margin: 0;
padding: 0;
canvas {display:block;}
</style>
</head>
<body>
<canvas id="c"></canvas>
<script>
// geting canvas by id c
var c = document.getElementById("c");
c.height = window.innerHeight;
c.width = window.innerWidth;
matrix = matrix.split("");
drops[x] = 1;
//sending the drop back to the top randomly after it has crossed the screen
//adding a randomness to the reset to make the drops scattered on the Y axis
drops[i] = 0;
//incrementing Y coordinate
drops[i]++;
setInterval(draw, 35);
</script>
</body>
</html>