Skip to content

Instantly share code, notes, and snippets.

@douglasgoodwin
Last active January 12, 2018 07:40
Show Gist options
  • Save douglasgoodwin/4fcfd2aa94ebb582d674131eecd35ea3 to your computer and use it in GitHub Desktop.
Save douglasgoodwin/4fcfd2aa94ebb582d674131eecd35ea3 to your computer and use it in GitHub Desktop.
n=3
c=7
def setup():
background(0)
size(600,600)
def draw():
global a,n
a = n * 137.5
r = c * sqrt(n)
x = r * cos(a) + width/2
y = r * sin(a) + height/2
fill(255)
ellipse(x,y,9,9)
n = n+1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment