Skip to content

Instantly share code, notes, and snippets.

@LettError
Created May 25, 2023 10:13
Show Gist options
  • Save LettError/56d6e5ce3f922f4883bb2e78c0f475c4 to your computer and use it in GitHub Desktop.
Save LettError/56d6e5ce3f922f4883bb2e78c0f475c4 to your computer and use it in GitHub Desktop.
icon generator for drawbot
side = 500
steps = 100
clrs = [(1,.6,0),(0,0.3,.2)]
stack = 1000
for r in range(2):
d = 300 * side
for i in range(steps):
newPage(side,side)
fill(*clrs[0])
rect(0,0,width(),height())
factor = i / steps
translate(width()*.5,height()*.5)
fill(*clrs[1])
oval(-.5*d,-.5*d, d, d)
#d2 = d*.01
#fill(clrs[0])
#oval(-.5*d2,-.5*d2, d2, d2)
d *= .89
clrs.reverse()
saveImage("tunnel4.gif")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment