Skip to content

Commit

Permalink
Merge pull request #61 from PRO100BYTE/add-infinity-option-matrix
Browse files Browse the repository at this point in the history
Add infinity option matrix
  • Loading branch information
mraliscoder authored Oct 25, 2023
2 parents 8e6b33a + 24725cf commit 45f162d
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/commands/General/matrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,19 @@ export default class MatrixCommand {
}
draw();

setTimeout(function() {
function fadeOut() {
canvas.style.opacity -= 0.01;
if (canvas.style.opacity > 0) {
setTimeout(fadeOut, 20);
} else {
term.element.removeChild(canvas);
if (!params[1] || params[1].toLowerCase() !== "/infinity") {
setTimeout(function() {
function fadeOut() {
canvas.style.opacity -= 0.01;
if (canvas.style.opacity > 0) {
setTimeout(fadeOut, 20);
} else {
term.element.removeChild(canvas);
}
}
}
fadeOut();
}, 5000);
fadeOut();
}, 5000);
}
}

description() {
Expand Down

0 comments on commit 45f162d

Please sign in to comment.