顯示具有 B10010112 標籤的文章。 顯示所有文章
顯示具有 B10010112 標籤的文章。 顯示所有文章

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);
}  
}

2012年11月22日 星期四

B10010112_張雅婷_LOGO

void setup(){
 
size(500,500);
background(255,255,255);
smooth();
}
void draw(){
  background(255);
  PFont font;
  font=loadFont("cwTeXHeiBold-48.vlw");
  textFont(font);
 
fill (255);
stroke(0);//外框顏色(R,G,B)
triangle(170, 382, 160, 397, 180, 397);

fill (0);
stroke(0);//外框顏色(R,G,B)
strokeWeight(2);//外框寬度(數字)
ellipse(250,250,200,200);//
fill (255);
stroke(0);//外框顏色(R,G,B)
strokeWeight(8);//外框寬度(數字)
ellipse(380,380,90,90);//
fill (255);
stroke(255);//外框顏色(R,G,B)
strokeWeight(8);//外框寬度(數字)
ellipse(410,410,90,90);//
fill (0);
stroke(0);//外框顏色(R,G,B)
strokeWeight(2);//外框寬度(數字)
ellipse(350,350,130,130);//

fill (0);
stroke(0);//外框顏色(R,G,B)
quad(270,250,100,360,150,280,80,220);
fill (255);
stroke(0);//外框顏色(R,G,B)
strokeWeight(2);//外框寬度(數字)
ellipse(200,250,30,30);//
fill (0);
stroke(0);//外框顏色(R,G,B)
strokeWeight(2);//外框寬度(數字)
ellipse(205,257,12,12);//
noFill();
stroke(255, 102, 0);
stroke(0, 0, 0);
bezier(100,300,40, 250,  80, 210,20,180);
fill (255);
stroke(255);
quad(290, 240, 310, 260, 150,150, 100,100);

strokeWeight(2);//外框寬度(數字)
fill(0);
textSize(21);
text("JHANG",200,400);
text("YA-TING",230,430);

strokeWeight(2);//外框寬度(數字)
fill(0);
textSize(21);
text("JHANG",200,400);
text("YA-TING",230,430);
}