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);
}
}
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言