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
public class Solution { public void rotate(int[][] matrix) { int n=matrix.length; for (int i=0; i<n/2; i++) { for (int j=i...
分类:
其他好文 时间:
2014-09-07 14:42:05
阅读次数:
159
区间翻转 一脸Splay。第一次做区间翻转。一开始懒惰标记表示当前这可子树都需要翻转。这样就有个问题:旋转的状态的不一定是正确的(rotate传的参数不一定正确)。然后参考ac代码。联系线段树的lazy标记,每次跟新某个区间的时候,该线段区间肯定要先跟新,再在改区间节点打上标记,表示后面的子区间节点...
分类:
其他好文 时间:
2014-09-07 12:16:05
阅读次数:
327
A processing core comprising instruction execution logic circuitry and register space. The register space to be loaded from aVMCS, commensurate with a...
分类:
其他好文 时间:
2014-09-07 10:57:05
阅读次数:
256
NumberCircleProgressBar是一个基于Android的自定义圆形进度条,提供两种模式(rotate模式和rising_water模式),使用者可以自行定义文字颜色、文字大小、已完成进度的颜色、未完成进度的颜色等多个属性,同时提供了简单的例子以及多个style 以供参考!...
分类:
移动开发 时间:
2014-09-06 18:46:23
阅读次数:
425
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.这个题目主...
分类:
其他好文 时间:
2014-09-04 13:14:29
阅读次数:
139