2009年4月20日 星期一

數位美學 MIDTERM

這是在試驗之後的一些圖,發現亂數以及Pattern是個挺有趣的方法
以下附上其中一個圖的程式:

size(500,500);


background(0);


noStroke();


for(int i=25;i

for(int j=25;j

fill(255);


rect(i+random(10),j+random(10),105,105);


fill(125+j);


rect(i+5,j+5,100,100);


fill(0);


rect(i+random(5),j+random(5),90,90);


fill(200-i+j);


rect(i+random(5),j+random(5),80,80);


fill(150-j+i);


rect(i,j,70,70);


}


}


































沒有留言:

張貼留言