Thomas Sang Gul Kim
float x = 100;
float y = 100;
float xspeed = 1.5;
float yspeed = 2;
int counter = 0;
int drawing_number = 0;
void setup() {
size(450,450);
smooth();
background(255);
}
void draw(){
counter += 1;
float thomas_color = random(1,255);
color cl = color(6, thomas_color,110);
color line_color = color (0,thomas_color/2, 0);
noStroke();
fill(255,10);
rect(0,0,width+500,height+500);
x = x + xspeed;
y = y + yspeed;
if ((x > width) || (x < 0)) {
xspeed = xspeed * -1;
}
if ((y > height) || (y < 0)) {
yspeed = yspeed * -1;
}
stroke(10);
ellipseMode(CENTER);
fill(0);
ellipse(x, y, 60, 60);
ellipseMode(CENTER);
ellipse(x, y+30, 44, 28);
ellipseMode(CENTER);
ellipse(x, y+47, 44, 20);
rectMode(CENTER);
rect(x-3, y-25, 2, 15);
rect(x+3, y-25, 2, 15);
rectMode(CENTER);
rect(x, y-3, 34, 15);
rectMode(CENTER);
rect(x, y+7, 36, 15);
rectMode(CENTER);
rect(x, y+17, 40, 17);
rectMode(CENTER);
rect(x, y+19, 36, 18);
rectMode(CENTER);
rect(x, y+47, 46, 10);
rectMode(CENTER);
rect(x, y+51, 30, 13);
rectMode(CENTER);
rect(x, y+53, 21, 13);
strokeWeight(5);
line(x-10, y+57, x-8, y+67);
line(x+8, y+57, x+6, y+67);
line(x-8, y+57, x-6, y+62);
line(x+6, y+57, x+4, y+62);
line(x-50, y+22, x-14, y+43);
line(x-40, y-103, x-50, y+22);
line(x+15, y+43, x+51, y+22);
line(x+41, y-103, x+51, y+22);
line(x-90, y+22, x-14, y+43);
line(x-60, y-73, x-90, y+22);
line(x+15, y+43, x+91, y+22);
line(x+61, y-73, x+91, y+22);
line(x-14, y+43, x-70, y+67);
line(x-70, y+67, x-50, y+157);
line(x+15, y+43, x+73, y+67);
line(x+73, y+67, x+40, y+157);
line(x-14, y+43, x-40, y+67);
line(x-40, y+67, x-20, y+167);
line(x+15, y+43, x+43, y+67);
line(x+43, y+67, x+10, y+167);
if(counter == 120){
drawing_number += 1;
counter = 0;
save("drawing"+drawing_number);
if(drawing_number == 10){
exit();
}
}
}