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

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

2012年11月18日 星期日

B10010002_賴沛樺_LOGO



void setup() {
  size(300, 300);
  background(155);
  noStroke();
  noLoop();
}
void draw() {
  drawTarget(width*0.4, height*0.42, 300, 4);//位置 大小圈數
  drawTarget(width*0.79, height*0.79, 150,5);
}
void drawTarget(float xloc, float yloc, int size, int num) {
  float grayvalues = 255/num;
  float steps = size/num;
  for (int i = 0; i < num; i++) {
    fill(i*grayvalues);
    ellipse(xloc, yloc, size - i*steps, size - i*steps);
 
    PFont font;
   //font = loadFont("BrowalliaUPC-48.vlw");
   textFont(createFont("Arial", 36));//字體
  fill(255);//字的顏色
  textSize(25);
  text("Spatial", 50, 100);
  textSize(25);
  text("Interaction",50 ,125);
  textSize(45);
  text("design",50,165); 
  }
}