Animação linear
int a;
void setup(){
size(400,300);
background(250,150,150);
rectMode(CENTER);
fill(150,100,100);
stroke(230,230,230);
}
void draw(){
/*
–animação linear move-se a uma velocidade constante num sentido
incrementação a++ ou a=a+1;
*/
background(250,150,150);
a++;
rect(a,150,100,100);
}
To view this content, you need to install Java from java.com
