Skip to content

Instantly share code, notes, and snippets.

@gabrielflorit
Created February 10, 2020 06:32
Show Gist options
  • Save gabrielflorit/a16cf92abec6cb7feeee288e6304dab5 to your computer and use it in GitHub Desktop.
Save gabrielflorit/a16cf92abec6cb7feeee288e6304dab5 to your computer and use it in GitHub Desktop.
SCRIPT-8
init = state => {
state.x = 0
state.y = 0
state.w = 10
state.h = 10
state.c = 1
}
update = (state, input, elapsed) => {
}
draw = state => {
rectFill(state.x, state.y, state.w, state.h, state.c)
}
{
"iframeVersion": "0.1.280",
"lines": [
14,
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