// Voir http://processing.org/reference/if.html
int x = 0; // DŽfinir une valeur de position horizontale
int y = 55; // DŽfinir une valeur de position verticale
void setup() {
size(100, 100); // fenetre a 100 x 100 pixels
}
void draw() {
background(204);
line(x, y, x+20, y-40); // Ligne de gauche
line(x+10, y, x+30, y-40); // Ligne du milieu
line(x+20, y, x+40, y-40); // Ligne de droite
x = x + 1; // Ajouter 1 ˆ x
if (x > 100) { // Si x est plus grand que 100
x = -40; // assigner -40 ˆ x
}
}