2012年11月30日 星期五

B10010002_賴沛樺_聖誕樹





/*background (20,60,0);綠*/

/*background (0,50,20);綠*/
size (200,300);

  stroke (255);



fill(200);
triangle(90, 35, 110,35, 100, 27);



for(int i=40; i <= 160; i+=5) {
  point(i,100);
  line(i,95,100,40);
  smooth();
}

for(int x=30; x <= 170; x+=5) {
  point(x,160);
  line(x,155,100,80);
  smooth();
}

for(int y=20; y <= 180; y+=5) {
  point(y,225);
  line(y,220,100,130);
smooth();
}

line (90,260,90,225);
line (95,260,95,225);
line (100,260,100,225);
line (105,260,105,225);
line (110,260,110,225);
smooth();

沒有留言:

張貼留言