Bubbling
int x;
int y;
int d = 80;
void setup() {
size(600, 600);
background(255);
}
void draw() {
background(0);
for (int x = width/6; x < width-70; x += 100 ) {
for (int y = height/6; y <height-70; y += 100) {
fill(252, 236, 82); ///face color
stroke(54, 200, 255);////face outline
strokeWeight(10);
//line(x,y, x+30, y+80);
rect(x-40, y-50, d, d);//face
stroke(0);
strokeWeight(2);
fill(0);
ellipse(x-20, y-35, d-70, d-70);////left eye
fill(255);
ellipse(x-22, y-37, d-75, d-75);////left eye highlight
fill(0);
ellipse(x+20, y-35, d-70, d-70);////right eye
fill(255);
ellipse(x+18, y-37, d-75, d-75);///right eye highlight
fill(0);
stroke(237, 62, 109, 200); ///outline color
strokeWeight(25);
frameRate(10);
ellipse(x, y, random(d), random(d));////mouth
}
}
save("capture.png");
}

Comments
Post a Comment