Skip to content

Instantly share code, notes, and snippets.

@MarkGamed7794
Created June 26, 2019 00:40
Show Gist options
  • Save MarkGamed7794/5c9fd0e6d1ff65b091409b1344493189 to your computer and use it in GitHub Desktop.
Save MarkGamed7794/5c9fd0e6d1ff65b091409b1344493189 to your computer and use it in GitHub Desktop.
SCRIPT-8
draw = () => {
clear()
range(8).forEach(i => {
const angle = 5
const halfSide = 8 * i / 2
const topLeft = [64 - halfSide, 64 - halfSide]
const topRight = [64 + halfSide, 64 - halfSide]
const bottomRight = [64 + halfSide, 64 + halfSide]
const bottomLeft = [64 - halfSide, 64 + halfSide]
const color = i % 7
polyStroke([topLeft, topRight, bottomRight, bottomLeft], angle, color)
})
}
{
"iframeVersion": "0.1.255",
"lines": [
13,
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