Projets

test mini EDI pjs

Test Mini EDI Processing.js

  int mx,my;

void setup() {
 size(400,400);
 strokeWeight(3);
 smooth();
}

void draw() {
 background(102);
tete();
oeil(150,height/2); 
oeil(250,height/2); 
}

void tete() {  
 fill(200);
 ellipse  (200,200,200,200);
 fill(200);
 bezier(150,250,150,350,150,350,250,250);
}

void oeil(int x,int y) { 
 fill(255);
 ellipse(x,y,80,80);
 mx=mouseX-x;
 my=mouseY-y;
 fill(50);
 ellipse(x+mx/10,y+my/10,20,20);
}

Hello Body !