Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
~/src/Game_of_Life% git diff
diff --git a/script.js b/script.js
index a57a343..5045273 100644
--- a/script.js
+++ b/script.js
@@ -14,12 +14,12 @@ c.lineWidth=2;
function addsquare(){
- c.fillRect(302,302,46,46);
+ c.fillRect(300,300,50,50);
}
setInterval("addsquare()",500)
function removesquare(){
- c.clearRect(302,302,46,46);
+ c.clearRect(301,301,48,48);
}
setInterval("removesquare()",1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment