2012年11月30日 星期五

F10110006_樂軼燕_聖誕樹


size(255, 255);
background(180, 50, 50);
strokeWeight(3);
  smooth();
 
  noFill();
strokeWeight(9.0);
strokeJoin(ROUND);
beginShape();

vertex(85, 50);
vertex(30, 50);
vertex(35, 80);
endShape();

  noFill();
strokeWeight(9.0);
strokeJoin(ROUND);
beginShape();

vertex(15, 50);
vertex(30, 50);
vertex(35, 80);
endShape();

noFill();
strokeWeight(9.0);
line(155, 50, 210, 50);

noFill();
strokeWeight(9.0);
line(155, 70, 210,50);

fill(30, 60, 20);
noStroke();
triangle(80, 125, 108, 70, 136,125);
smooth();
for(int i=60; i<125; i+=1) {
  // If 'i' divides by 20 with no remainder draw the first line
  // else draw the second line
  if(i%15 == 0) {
 
    ellipse(108, i+25, 15,15);

    fill(255, 204, 0);  
  }
}

沒有留言:

張貼留言