Coding: face.

// fun stuff
float filthy = 290;
float rock = 390;
float frank = .6;
float star = 1.6;
int u= 200;

// head
int bro=200;

//third eye
color thirdeye;
int pupilm = 146;
int pupily=128;
int counterX;
int intervalX = 100;

// righteye
int circlet = 186;

//left eye
int step = 0;
int circleX = 100;
int circleY = 180;
float dub = 255;
float frog = 255;
float russia = 255;

//mouth
int linej=143;
int linee=280;
int countertw;
int intervalw=5;
float dot=1;
int moth = 50;
float eae = 255;
float joe = 255;
float were = 255;
float rrr = 2225;
int s;
void setup() {
size(300, 400);
thirdeye =color(random(255), random(255));
smooth();
}
void draw() {

background(russia);
s = second();
stroke(rrr);
fill(dub, dub, dub);
rect (filthy, u, 40, 20);
fill(255);
ellipse(width/2, height/2, bro, 300); // head
fill(russia, dub, russia);
rect(filthy, 175, 40, 20);

//third eye
fill(thirdeye);
ellipse(146, 130, 40, 40);
fill(0);
ellipse (pupilm, pupily, 10, 10);

// back to regular
fill(dub, frog, russia);
ellipse(100, 180, 40, 40); // left eye

ellipse(186, 180, 40, 40); // right eye

fill(1);
ellipse(circleX, circleY, 10, 10); // left pupil

ellipse(circlet, 180, 10, 10); // right pupil

ellipse(143, 280, 50, 1); // mouth
fill(255);
//commands/////

//left pupil
if (step ==0) {
circleX = circleX + 2;
if (circleX >= 96) {
circleX = 90;
step =0;
} else if (step==0) {
circleY = circleY +2;
if (circleY >= 176) {
circleY=169;
step=0;
} else if (step==0) {
circleX = circleX-3;
if (circleX <=100) {
circleX = 100;
step = 0;
}
}
}
}
fill(eae, joe, were);
ellipse(linej, linee, moth, dot); // mouth

if (linej <=143) {
linej = linej + 12;
}
if (linee<=350) {
linee = linee +12;
}
countertw++;
if (countertw >= intervalw && countertw<=intervalw+100) {
dot = dot +2;
moth = moth-2;
rrr = (0);
eae = (0);
joe = (0);
were = (0);
} else if (countertw >= intervalw+intervalw) {
rrr=random(255);
eae =random(255);
joe = random(255);
were =random(255);
//dot = random(255);
}

fill(russia, frog);
rect(150, rock, 30, 70);

//right pupil
if (step==0) {
circlet = circlet -22;
}

//thirdeye
counterX++;
if (counterX>= intervalX) {
counterX = 0;
thirdeye = color(random(255));
}if (step==0){
circlet =1;
}

filthy = filthy – frank;
rock = rock-star;

dub = random(255);
frog = random(255);
russia = random(255);
}

Advertisements
This entry was posted in Timebased and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s