鼠标点击物体旋转,再点击停止。floatangle=0;booleana=true;voidsetup(){size(500,500,P3D);}floatx=0;voiddraw(){background(204);noFill();translate(width/2,height/2,0);rotateX(angle);if(a){angle=angle+0.01;}box(80);}voidmousePressed(){a=!a;}希望这些入门的案例可..
分类:
其他好文 时间:
2014-09-13 03:04:24
阅读次数:
175
eclipse下修改项目名导致tomcat内发布名不一致的解决方法 .-------------------------------------------------------解决方案:直接ctrl+h 查找相应的项目名称的以前项目名,然后修改即可The processing instructi...
分类:
系统相关 时间:
2014-09-11 18:53:42
阅读次数:
198
A method and mechanism for performing an unconditional stack switch in a processor. A processor includes a processing unit coupled to a memory. The me...
分类:
其他好文 时间:
2014-09-09 12:00:48
阅读次数:
171
Row versus Set Processing, Surprise!Craig Shallahamer:1. Set based processing will likely be much faster than row based processing. Our experiment of ...
分类:
其他好文 时间:
2014-09-09 11:05:08
阅读次数:
162
voiddraw(){
rect(20,20,60,60);
}
voidmousePressed(){
link("http://processingjs.org");
}
link(url);
link(url,target)
分类:
其他好文 时间:
2014-09-09 09:11:08
阅读次数:
185
voidsetup(){size(200,200);rectMode(CENTER);noFill();translate(100,100);for(inti=1;i<16;i++){rotate((PI/16)*i);rect(0,0,100,100);}}
分类:
其他好文 时间:
2014-09-09 09:10:58
阅读次数:
211
voidsetup(){size(200,200,P3D);noFill();smooth();}voiddraw(){background(0);translate(width/2,height/2,-(width/2));rotateY(map(mouseX,0,width,-PI,PI));stroke(100);box(150);rotateX(map(mouseY,0,height,-PI,PI));stroke(150);box(75);}
分类:
其他好文 时间:
2014-09-09 09:10:49
阅读次数:
348
intrectX,rectY;intrectSize=90;colorrectColor;colorbaseColor;booleanrectOver=false;voidsetup(){size(640,360);rectColor=color(0);baseColor=color(102);rectX=width/2-rectSize/2;rectY=height/2-rectSize/2;}voiddraw(){update(mouseX,mouseY);noStroke();if(rectOver){..
分类:
移动开发 时间:
2014-09-08 11:00:17
阅读次数:
697
官方链接:http://storm.incubator.apache.org/documentation/Guaranteeing-message-processing.htmlWhat does it mean for a message to be “fully processed”?A tup...
分类:
其他好文 时间:
2014-09-08 00:59:26
阅读次数:
482
floati=0;booleanf=false;floatxx,yy,zz;voidsetup(){size(200,200,P3D);noFill();smooth();frameRate(25);}voiddraw(){background(0);xx=width/2;yy=height/2;zz=-(width/2);translate(xx,yy,zz);rotateX(map(i++,0,height,-PI,PI));rotateY(map(i++,0,height,-PI,PI));stroke..
分类:
其他好文 时间:
2014-09-07 18:38:46
阅读次数:
266