Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save joehakimrahme/593b2ce886f4ff8ca24a04c939ab433e to your computer and use it in GitHub Desktop.
Save joehakimrahme/593b2ce886f4ff8ca24a04c939ab433e to your computer and use it in GitHub Desktop.
~/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