Skip to content

Instantly share code, notes, and snippets.

@thykka
Created July 25, 2020 20:55
Show Gist options
  • Save thykka/6b3f6f5ff67b2e84eda6490d49cb709c to your computer and use it in GitHub Desktop.
Save thykka/6b3f6f5ff67b2e84eda6490d49cb709c to your computer and use it in GitHub Desktop.
SCRIPT-8
init = state => {
state.time = 0
}
update = (state, input, elapsed) => {
state.time ++
}
draw = state => {
clear((Math.sin(state.time / 16) * 0.5 + 0.5) * 8 | 0)
}
{
"iframeVersion": "0.1.280",
"lines": [
11,
0,
0,
0,
0,
0,
0,
0
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment