Criação de aplicações com Processing:
Exemplo1
Exemplo2
Código para a primeira aplicação:
Abrir
PImage fundo;
import guicomponents.*;
GImageButton prof2004;
GLabel texto;
long timer;
void setup() {
size(1200, 800);
smooth();
timer = millis() - 5000;
imageMode(CORNER);
fundo = loadImage("back.png");
prof2004 = new GImageButton(this, null, "logohr.png", 0, width-125, 25);
fill(0);
texto = new GLabel(this, "", 30, 505,560,20);
}
void draw() {
background(fundo);
fill(255);
rect(25, 500, width-50, 700);
if (millis()-timer > 4000){
texto.setText("");
}
}
void handleImageButtonEvents(GImageButton imagebutton) {
if(imagebutton == prof2004){
texto.setText("Criador desta aplicação");
}
timer=millis();
}
Qui Fev 13, 2014 4:30 pm por Admin
» Apresentação
Qui Fev 13, 2014 4:17 pm por Admin
» Documentação
Seg Fev 10, 2014 6:03 pm por Admin
» Bem vindos!
Seg Dez 03, 2012 1:19 pm por Admin