2009年3月2日 星期一

數位美學 3/2

安裝processing ->測試 Java是否有安裝,若無則自行安裝
        (網頁的Learning ->Example ->
        選任一範例,看左方示意圖是否正常)



程式碼:
討論範例 -> Width & Height
(有交錯效果!)
----------------------------------------------------------
size(width,height);
background(色碼);     //0~255
noStroke();        //無邊線

for(設定 ; 條件 ; 更新){

fill(ColorScale);      //灰階: fill(0~255) or 彩色: fill(R,G,B);
rect( x1,y1 ,height ,width ); //rectangle(起點x,起點y,長,高)

fill(ColorScale);      //同上
rect( x1,y1 ,height ,width );


}
----------------------------------------------------------
ellipse(x,y,a,b);     //x,y=中心座標 ; a=橫軸,b=縱軸


下次預告: Repeat 5連做

--
額外掉寶:
NIME
筆型擦布 (細的長方形)

沒有留言:

張貼留言