Update matrix effect

This commit is contained in:
LSvekis
2021-10-04 18:02:26 -04:00
committed by GitHub
parent 0dd38d5ade
commit 9049eb2779
+1 -3
View File
@@ -16,13 +16,11 @@
colVal.push(0);
}
function matrix() {
console.log(colVal);
let output = "0";
ctx.fillStyle = "rgba(0,0,0,.05)";
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = "green";
colVal.map((posY, index) => {
output = Math.random()<0.5?0:1;
let output = Math.random()<0.5?0:1;
let posX = (index * 10) + 10;
ctx.fillText(output, posX, posY);
if (posY > 100 + Math.random() * 300) {