We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf12bbd commit 350db29Copy full SHA for 350db29
public/life.js
@@ -1,5 +1,6 @@
1
const targetElement = document.getElementById('life')
2
3
+const UPDATE_INTERVAL = 300
4
const PADDING = 5
5
const DISPLAY_WIDTH = 48
6
const DISPLAY_HEIGHT = 16
@@ -80,7 +81,7 @@ let lifeInterval = setInterval(() => {
80
81
}
82
83
state = new_state
-}, 100)
84
+}, UPDATE_INTERVAL)
85
86
const handleInteraction = (e) => {
87
const rect = targetElement.getBoundingClientRect()
0 commit comments