Created
June 1, 2020 15:22
-
-
Save joehakimrahme/593b2ce886f4ff8ca24a04c939ab433e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/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