【求改球体颜色与背景!】急急急
processing吧
全部回复
仅看楼主
level 3
zzzlsg☜ 楼主
【求改球体颜色与背景!】急急急
void setup(){
size(600, 600, P3D);
}
void draw(){
background(2389);
translate(width/2, height/2);
rotateX(-PI/12);
rotateY(map(mouseX, mouseY, width, -PI, PI));
noStroke();
spotLight(0,255, 255, 80, 20, 40, -1, 0, 0, PI/2, 2);
translate(0, 20, 0);
sphere(40);
pushMatrix();
translate(0, 0, 200);
sphere(30);
popMatrix();
pushMatrix();
translate(0, 0, -200);
sphere(20);
popMatrix();
pushMatrix();
translate(200, 0, 0);
sphere(10);
popMatrix();
pushMatrix();
translate(-200, 0, 0);
sphere(40);
popMatrix();
}
2017年06月22日 22点06分 1
level 3
zzzlsg☜ 楼主

2017年06月22日 22点06分 2
level 3
zzzlsg☜ 楼主
谢谢大家
2017年06月22日 22点06分 3
level 1
你真无理
2019年03月26日 07点03分 5
level 1
你老公飞利浦知道你这样吗
2019年03月26日 07点03分 7
1