标签:processing 入门 processing mousex processing鼠标感应
void setup(){
size(1000,600,P3D);
noFill();
smooth();
}
void draw(){
background(0);
translate(width/2,height/2,-(width/2));
rotateY(map(mouseX,0,width,-PI,PI));
stroke(100);
box(350);
rotateX(map(mouseY,0,height,-PI,PI));
stroke(150);
box(200);
}
本文出自 “processing” 博客,请务必保留此出处http://dazhou.blog.51cto.com/2604246/1558271
标签:processing 入门 processing mousex processing鼠标感应
原文地址:http://dazhou.blog.51cto.com/2604246/1558271