float x, y; float angle = 90, rayon = 1.0; void setup(){ size(500,500); smooth(); x = width / 2; y = height / 2; angle = random(360); } void draw() { background(255); angle += random(-3,3); x += cos( radians(angle) ) * rayon; y += sin( radians(angle) ) * rayon; // boucler sur les bords de l'ˇcran en profitant de l'effet de congruence x = (x + width) % width; y = (y + height) % height; // aller au point, tourner dans le sens de l'angle translate(x, y); rotate(radians(angle)); // dessiner un petit truc phallic ellipse(0,0,5,5); line(0,0,10,0); }