/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://bard117f12.sketchpad.cc/sp/pad/view/ro.AbvCXnK$Xqs/rev.2
*
* authors:
* joshua heaps
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
float sx;
float sy;
int centerx;
void setup() {
size(400, 400);
background(150, 0, 0, 0);
strokeWeight(12);
fill(83, 134, 139);
rect(50, 200, 250, 700);
fill(255, 228, 196);
strokeWeight(7);
ellipse(183, 183, 175, 255);
fill(255, 250, 250);
ellipse(150, 150, 20, 20);
ellipse(250, 150, 20, 20);
strokeWeight(15);
fill (35, 142, 35);
ellipse(153, 150, 9, 9);
ellipse(250, 150, 8, 8);
fill(211, 211, 211);
strokeWeight(12);
ellipse(153, 150, 3, 3);
ellipse(251, 150, 3, 3);
strokeWeight(3);
fill(0, 0, 0);
line(140, 130, 160, 120);
line(235, 123, 255, 130);
ellipse(210, 250, 60, 50);
fill(238, 59, 59);
strokeWeight(2);
ellipse(210, 260, 50, 30);
fill(0, 0, 0);
line(214, 175, 232, 207);
line(232, 207, 214, 207);
line(90, 275, 75, 800);
line(265, 275, 265, 800);
fill(46, 46, 46);
colorMode(HSB, 360, 100, 100);
}
void draw() {
smooth();
strokeWeight(10);
fill(255, 255);
textAlign(CENTER);
text("Help! I have no hair! Draw me some.", width/2, 20);
fill(0, 0, 0);
strokeWeight(8);
if (mousePressed)
line(mouseX, mouseY, pmouseX, pmouseY);
//sx=random(10,width);
//sy=random(10,height);
//ellipse(sx, sy, 10,10);
//fill(random(175,175), 300, 180, 180);
}