2010年10月13日 星期三

Cube by processing





















這很傷腦細胞,先打住。

很笨的寫法
size(400,400,P3D);
background(255,255,255);
smooth();
fill(200,10,10);
int j=30;

translate(180, 140, 60);
rotateY(.8);
box(30, 30, 30);
translate(0, j, 0);
box(30, 30, 30);
translate(0, j, 0);
box(30, 30, 30);
translate(0, j, 0);
box(30, 30, 30);
translate(0, j, 0);
box(30, 30, 30);
translate(j, 0, 0);
box(30, 30, 30);
translate(0, -j, 0);
box(30, 30, 30);
translate(0, -j, 0);
box(30, 30, 30);
translate(0, -j, 0);
box(30, 30, 30);
translate(0, -j, 0);
box(30, 30, 30);
translate(0, 0, j);
box(30, 30, 30);
translate(0, j, 0);
box(30, 30, 30);
translate(0, j, 0);
box(30, 30, 30);
translate(0, j, 0);
box(30, 30, 30);
translate(0, j, 0);
box(30, 30, 30);
translate(-j, 0, 0);
box(30, 30, 30);
translate(0, -j, 0);
box(30, 30, 30);
translate(0, -j, 0);
box(30, 30, 30);
translate(0, -j, 0);
box(30, 30, 30);
translate(0, -j, 0);
box(30, 30, 30);

沒有留言:

張貼留言