2017年12月14日 星期四

田園 計圖筆記 Week14

Rasterization
1.打開processing
2.程式碼
size(600,600,P3D);
background(255);
beginShape(TRIANGLE);
stroke(255,0,0);vertex(300,100);
stroke(255,255,0);vertex(500,500);
stroke(0,0,255);vertex(100,500);
endShape();

3.stroke表顏色 執行後就會有一個中空三角形


4.stroke改成fill就會有填滿的三角形






沒有留言:

張貼留言