class Electre { float x, y, t, xb, yb, var; Electre(float X, float Y, float XB, float YB, float T) { x=X; y=Y; t=T; xb=XB-X; yb=YB-Y; } void Dessiner() { pushMatrix(); translate (x,y); stroke (0); strokeWeight(3); noFill(); bezier (0,0,100,100,0,100,xb,yb); strokeWeight(1); var = (var+random(-1,1))%2; fill(0); ellipse (0,0,8*t,8*t); stroke(255); strokeWeight(2); ellipse (0,0,(7+var)*t,(7+var)*t); ellipse (0,0,(5+var)*t,(5+var)*t); ellipse (0,0,(3+var)*t,(3+var)*t); noFill(); popMatrix(); } }