//Programado em 2011 por Tony de Marco //para o aniversário de 80 anos de Augusto de Campos, autor do poema VIVA VAIA //Feito com Processing e libertado do Java pelo Processing.js //Obrigado Ben Fry, Casey Reas, John Resig e Luciano Ramalho
//Não funciona no Internet Explorer
void setup() { size(1115, 400); smooth(); noStroke(); } void draw() { float ax = constrain(430 + mouseX/60, 430, 445); float bx = constrain(445 + (width - mouseX)/60, 445, 460); float cx = constrain(460 + mouseX/6.75, 460, 625); float dx = constrain(265 + (width - mouseX)/6.75, 265, 430); float ex = constrain(490 + mouseX/6.75, 490, 655); float fx = constrain(685 + (width - mouseX)/6.75, 685, 850); float gx = constrain(670 + mouseX/60, 670, 685); float hx = constrain(655 + (width - mouseX)/60, 655, 670); float c = constrain(mouseX/4.7, 17, 255); background(451-c, 272-c, 302-c); fill(196+c, 17+c, 47+c); triangle(40, 40, 400, 40, 220, 360); quad(ax, 40, bx, 40, cx, 360, dx, 360); quad(ex, 40, fx, 40, gx, 360, hx, 360); triangle(895, 40, 1075, 360, 715, 360); }