Author Archive

face motion

Capture1 capture3 Capture4 Capture5 Capture6 Capture7 Capture8 Capture Capture2

 

<pre lang=”java”>

float hr=240;
float hg=20;
float hb=100;
float ey=190;
float ex=100;
float ez=100;
int x;
int y;
void setup() {
size(500,500);

}

void draw(){

background (255,150,200);

fill(255,255,255);
ellipse(250,250,250,250);

fill(0,0,0);
rect(175,150,50,ex);
rect(275,150,50,ez);

fill(255,0,0);
ellipse(250,300,100,ey);

if(mousePressed){
ey =random(0,200);
ex =random(0,100);
ez =random(0,100);
}

}

</pre>

Nicholas Sintilas face

Face Portrait

<pre lang=”java”>

void setup() {
  
  size(500,500);
  background
  background (255,150,200);
  
  point(50,50);
  
  fill(256,256,256);
  ellipse(250,250,250,250);
  
  fill(0,0,0);
  rect(175,100,50,100);
  rect(275,100,50,100);
  ellipse(250,300,100,0);
  
}


void draw(){
  
  println(mouseX);
  println(mouseY);


}

</pre>