from math import sin, cos, tan size(150,150) def draw(): translate(75,75) stroke(0.2) a=random(0.2) for i in range(40): fill(a*sin(i),a*cos(i),a*tan(i),a) oval(0-(i*i)/2,0-(i*i)/2,150+(i*i),150+(i*i)) translate(i*sin(i),i*cos(i)) nofill()
i used nodebox 2
MyFirstTry (Spiral)
Posted by Thomas on Apr 19, 2011from math import sin, cos, tan
size(150,150)
def draw():
translate(75,75)
stroke(0.2)
a=random(0.2)
for i in range(40):
fill(a*sin(i),a*cos(i),a*tan(i),a)
oval(0-(i*i)/2,0-(i*i)/2,150+(i*i),150+(i*i))
translate(i*sin(i),i*cos(i))
nofill()