Skip to content

Instantly share code, notes, and snippets.

@gabrielflorit
Created February 12, 2020 01:50
Show Gist options
  • Save gabrielflorit/b43cf8a7375736b8bb2faeaa4058e13c to your computer and use it in GitHub Desktop.
Save gabrielflorit/b43cf8a7375736b8bb2faeaa4058e13c to your computer and use it in GitHub Desktop.
SCRIPT-8
const getRandomInt = max => Math.floor(Math.random() * Math.floor(max))
init = state => {}
update = (state, input, elapsed) => {}
draw = state => {
range(128).forEach(x => {
range(128).forEach(y => {
setPixel(x, y, getRandomInt(8))
})
})
}
{
"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