int nQ=16; Chose[][] choses = new Chose[nQ][nQ]; float pupilles=0; float pX,pY; float mX,mY; void setup() { size(600,600); frameRate(50); background(255); smooth(); pX=mX=width/2; pY=mY=height/2; for (int a=0;a(float)(width+height)/50) { pushMatrix(); translate(x,y); scale(((width+height)-dist(x,y,mX,mY)*40)/(width+height)); rotate(atan2(y-mouseY,x-mouseX)+PI/7); triangle(0,-5,-5,5,5,5); popMatrix(); } } void bouge(float x, float y) { origX=oX2+x; origY=oY2+y; } } void yeux() { pupilles-=10; noStroke(); fill(0); ellipse(mouseX-width/9,mouseY-height/10,width/13,height/13); ellipse(mouseX+width/9,mouseY-height/10,width/13,height/13); if (random(pupilles)>10) { stroke(0); noFill(); ellipse(pX-width/9,pY-height/10,width/50,height/50); ellipse(pX+width/9,pY-height/10,width/50,height/50); } noStroke(); } void mousePressed() { float x=random(width)-(width/2); float y=random(height)-(height/2); for (int a=0;a