color[] crs = new color[300]; void setup() { size(500,500,P3D); // ortho(); textSize(30); for(int i = 0; i < 300; i++){ crs[i] = color(random(255),random(255),random(255)); } } String[] months = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }; void draw(){ background(255); pushMatrix(); translate(250,-300,0); float move = map(mouseX,0,500,-.5,1.5); rotateX(.81); translate(0,0,-move * 180); rotateZ(move*PI *2); for(int c = -4; c < 5; c++){ // int c = 1; for(int i = 0; i < 12; i++){ float bc = map(c*12+i,-50,72,0,255); fill(bc); stroke(bc); //color cr = crs[12*c + i ]; // fill(cr); stroke(cr); rotateZ(PI/6); translate(0,0,-15); //if(c >= ){ //rotateY(mouseY); line(70,-20,10,70,20,-10); pushMatrix(); translate(0,10); text(months[11-i],80,0); popMatrix(); //} } } popMatrix(); }