Last active
January 12, 2018 07:40
-
-
Save douglasgoodwin/4fcfd2aa94ebb582d674131eecd35ea3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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