Something done in twenty minutes after learning how to mess around with sin(), push() and pop().
If you run this script, you may want to reduce the amount for counter the first time you do.
frommathimport sin
width = 1440
height = 900
sizex = 80
sizey = 10size(width, height)background(0)# You might want to make counter a smaller number at first
counter = 144000for i inrange(0,counter):
i = i*4fill(0.5+((sin(i/9))/2),(sin(i/36))/1,sin(i/10),0.1)push()translate(300+(sin(i/3.14)*(i/64)),random(-2.0,2.0))rect((width-sizex)/2,(height-sizey)/2,sizex,sizey)pop()rotate(i/random(100.0,200.0))
Colour rectangle star wheel
Posted by brokendrum70 on Jan 04, 2009Something done in twenty minutes after learning how to mess around with sin(), push() and pop().
If you run this script, you may want to reduce the amount for counter the first time you do.