2009年5月24日 星期日

期中

//Concentration//
void setup() { size (400,400); background (255); smooth (); noStroke (); noLoop();}void draw () { int x = width/2; int y = height/2; for (int i=0;i0.8){ d=1; } float dx = 2-d; fill (200-dx*100); ellipse (i+10,j+10,10*dx,10*dx); } }}


//space//
void setup(){ size(400, 400); smooth();}void draw(){ background(255); fill (0); rect (mouseX-10,mouseY-10,20,20); line (0,0,mouseX-10,mouseY-10); line (width,0,mouseX+10,mouseY-10); line (0,height,mouseX-10,mouseY+10); line (width,height,mouseX+10,mouseY+10);}


//radiation//
void setup(){ size(400, 400); smooth(); noStroke();}void draw(){ background(0); for (int i=0;i<401;i+=40){ j="0;j<401;j+="40){" x =" mouseX;" y =" mouseY;">

沒有留言:

張貼留言