General update

This commit is contained in:
Git
2023-08-25 15:04:43 +00:00
parent a30c9a6216
commit 7097ecca16
13 changed files with 1695 additions and 5 deletions

13
GameOfLife/index.html Normal file → Executable file
View File

@@ -269,7 +269,13 @@
draw();
var looping = false;
setInterval(function(){
if(looping){
hue = hue+0.01;
hue = hue>1?0:hue;
}
},400);
document.addEventListener ('keydown', function (event) {
if (event.which == 38) {
@@ -284,7 +290,10 @@
}
else if(event.which == 39){
speed = Math.max(speed-0.01, 0.1 );
}
}
if (event.which == 32){
looping = looping?false:true;
}
});