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

2012年12月7日 星期五

B10030407 蔡承融




int x=0;
int y=0;

color a =color (7,106,135);

void setup(){
size(350,470);
}

void draw(){
background(125,209,240);

for (int i = 1; i < 100; i+=2) {//背景
stroke(209, 243, 255);
line(0, 350, 515-i, 240);
}
for (int i = 1; i < 130; i+=3) {//背景
stroke(195, 243, 255);
line(0, 450, 615-i, 240);
}
for (int i = 1; i < 150; i+=2) {//背景
stroke(195, 243, 255);
line(150, 200, 115-i, 0);
}
for (int i = 10; i < 171; i+=2) { //底
  stroke(36, 154, 198);
  line(180, 440+i, 350, 440+i);
}
for (int i = 10; i < 171; i+=2) { //底
  stroke(54, 79, 89);
  line(0, 440+i, 199, 440+i);
}
for (int i = 10; i < 171; i+=2) { //樹幹
  stroke(44, 109, 104);
  line(147, 140+i, 182, 140+i);
}
for (int i = 1; i < 100; i+=2) {//底淺三角
stroke(80, 223, 211);
line(167, 80, 215-i, 200);
}
for (int i = 1; i < 130; i+=2) {//最底三角
stroke(29, 76, 72);
line(167, 50, 229-i, 230);
}
for (int i = 1; i < 100; i+=2) {
stroke(14, 54, 51);
line(167, 100, 215-i, 140);
}
for (int i = 1; i < 100; i+=2) {
stroke(80, 223, 211);
line(167, 80, 215-i, 140);
}
for (int i = 1; i < 100; i+=2) {//上三角外
stroke(29, 76, 72);
line(167, 50, 215-i, 150);
}
fill(a);
textSize(26);
text("Merry", 165, 360);
text("Christmas", 185, 390);
}

2012年11月24日 星期六

B10030407 蔡承融


int x=0;
int y=0;


color a =color (255,204,0);
color b =color (255,32,64);
color c =color (120);
color d =color (220);

void setup(){
size(300,300);
}

void draw(){
background(45);
fill(d);
noStroke();
ellipse(45,115,25,25);
fill(a);
ellipse(80,150,55,55);
fill(c);
quad(80,30,40,50,80,50,50,10);
fill(a);
textSize(20);
PFont font;
font = loadFont("AngsanaNew-BoldItalic-48.vlw");
textFont(font);
text("Spatail",50,60);
text("Interaction",60,90);
text("Design",70,115);

fill(b);
font = loadFont("BookAntiqua-BoldItalic-48.vlw");
textFont(font);
textSize(12);
text("Tsai Cheng Rung",120,160);
}