/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://studio.sketchpad.cc/sp/pad/view/ro.Wko1rryJX4i/rev.445
*
* authors:
*
* vrsck
*
* caleb mascarenhas
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
/* @pjs font="http://calebav.com/droid.otf"; */
import processing.opengl.*;
float ang,ang2, ang3, ver, ved, azu, alf=0;
int nq = 20;
float vel = 0.01;
Pfont texto;
//usamos Pfont minusculo ao invé de PFont;
void setup() {
size(600, 600, OPENGL);
smooth();
//aqui usamos createFont ao invés de loadFont
texto = createFont("http://calebav.com/droid.otf", 60);
colorMode(HSB);
}
void draw() {
background(#98DBE0);
noStroke();
lights();
//pointLight(255,10,20,100,0,0);
alf=230;
//directionalLight(51, 102, 126, width/2,height/3, 0);
//ambientLight(51, 102, 126);, 0, 0);
for (int i=0;i<nq;i++) {
ver = i*9;
ved = i*20;
azu = i*28;
fill(ver, ved,azu ,alf);
pushMatrix();
translate(width/2, height/3, -20);
rotateX(ang+i);
rotateY(ang2-i);
rotateZ(ang-i);
box(230,150,230);
popMatrix();
}
ang+=vel*3;
ang2-=vel*1.5;
stroke(0);
fill(0);
textFont(texto, 70);
textAlign(CENTER);
text("PROCESSING", width/2, 420);
text("CURITIBA", width/2, 490);
textFont(texto, 45);
text("14 e 15 de Julho de 2012 ", width/2, 550);
}