2012年12月6日 星期四

B10010112_張雅婷_聖誕樹

void setup() {
  size(500,500);
  background(0);
}
void draw() {
for (int i = 30; i < 480; i +=80) {
    fill(255);
    stroke(255); 
    ellipse(350,i,17,17);
    ellipse(50,i+30,20,20);
    ellipse(170,i+60,19,19);
    ellipse(430,i+85,19,19);
    noSmooth();
  }
  for (int i = 140; i < height; i +=20) {
     stroke(200);  
    noFill();
    triangle(250, 80, 100, 350,400,350);
    triangle(250,35, 230,75, 270, 75);
    triangle(230,50, 250,80, 270, 50);
    rect(220,350,59, 90);
    stroke(0,100,100);
  }
    for (int i =140; i < height; i +=20)
     if ( i <415)  {
    line(250,84,i-20,350);
    stroke(0,100,100);
    line(250,350,250,440);
    line(240,350,240,440);
    line(230,350,230,440);
    line(260,350,260,440);
    line(270,350,270,440);
textSize(20);
text("-MERRY",300,470);
text("CHRISTMAS-",350,495);
}  
}

沒有留言:

張貼留言