Ball rouge; Ball bleue; Ball verte; float size ; float xpos, ypos; float xspeed = 2.8; float yspeed = 2.2; int xdirection = 1; int ydirection = 1; float trand =random(-100,100); void setup(){ size(1200,800); colorMode(HSB,100); ellipseMode(CENTER); background(0); rouge = new Ball(100); bleue = new Ball(100); verte = new Ball(20); xpos = random(width); ypos = random(height); } void draw(){ background(10); rouge.affiche(100,100); bleue.affiche(200,100); verte.affiche(500,300); fill(0); ellipse(100, 100, height*.618,height*.618); ellipse(-height, -width, width*.618, width*.618); }