/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://studio.sketchpad.cc/sp/pad/view/ro.odm0dOyGBk5/rev.833
*
* authors:
* caleb mascarenhas
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
// This sketch builds on a prior work, "Linhas", created by caleb mascarenhas
// http://studio.sketchpad.cc/sp/pad/view/ro.9DuE5aKyWue4c/rev.26
Pfont texto;
texto = loadFont("Impact");
int posx=0;
int posy=height-100;
void setup() {
size(500, 500);
background(#D5F559);
frameRate(12);
}
void draw() {
for (int i = -400;i<width;i+=130) {
float cor=map(i,-200,width,0,255);
stroke(205, cor, 0,200);
line(i+posx, 0, posx+i+10, height);
stroke(cor, 255, 0,200);
line(0,i+posy,width,posy+i-10);
}
if (posx<=width*0.8 || posy>=height) {
posx+=2;
posy-=2;
}
else {
posx=0;
posy=height;
}
fill(255,13)
textAlign(LEFT);
textFont(texto, 37);
text("Programação Visual", 50,100);
text("com", 50,140);
textFont(texto, 55);
text("Processing", 50,200);
textFont(texto, 37);
text("Sesc Pinheiros", 50,250);
textFont(texto, 16);
text("de 17 de maio à 7 de junho de 2012", 50, 300);
text("http://oficinaprocessing.com", 50, 450);
}