Skip to content

Instantly share code, notes, and snippets.

@gabrielflorit
Last active June 30, 2018 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielflorit/880a6bb0bf502a68f0cd7efb3ef20c24 to your computer and use it in GitHub Desktop.
Save gabrielflorit/880a6bb0bf502a68f0cd7efb3ef20c24 to your computer and use it in GitHub Desktop.
SCRIPT-8
// title: circles
initialState = {
actors: [
]
}
update = (state, input, elapsed) => {
}
drawActors = (state, fade) => {
state.actors.forEach(actor => {
})
}
draw = state => {
clear()
rectFill(0, 0, 128, 128, 6)
print(1, 1, 'radius', 0)
print(25, 1, 'circstroke', 0)
print(65, 1, 'circfill', 0)
print(97, 1, 'rectfill', 0)
line(24, 1, 24, 128, 5)
line(64, 1, 64, 128, 5)
line(96, 1, 96, 128, 5)
range(1, 8).forEach(i => {
print(11, i * 16, i, 0)
circStroke(44, 2 + i * 16, i, 0)
circFill(80, 2 + i * 16, i, 0)
rectStroke(113 - i, i * 15 + 3, i * 2 - 1, i * 2 - 1, 3)
print(105 - i, i * 16, i * 2 - 1, 0)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment