标签:style blog http color os sp div 2014 log
3D
void setup() { size(500,500,P3D); } void draw() { background(0); lights(); noStroke(); translate(250,400,-500); rotateY(PI/6); box(500,100,500); translate(0,150,0); box(500,100,500); translate(0,-400,100); sphere(200); }
---------------------------------------------------------------
void setup() { size(500,500,P3D); } void draw() { background(0); lights(); noStroke(); translate(250,400,-500); rotateY(PI/6); box(500,100,500); translate(0,150,0); box(500,100,500); translate(0,-400,100); sphere(200); }
整个阵列沿Y轴旋转运动
-----------------------------------------------------------------------------
标签:style blog http color os sp div 2014 log
原文地址:http://www.cnblogs.com/dplearning/p/4025399.html