/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://bard117s14.sketchpad.cc/sp/pad/view/ro.7zt3k5bCR8K/rev.4
*
* authors:
* Paula Van Erven
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
// This sketch builds on a prior work, "Modified clone of 'Untitled Sketch'", created by Paula Van Erven
// http://bard117s14.sketchpad.cc/sp/pad/view/ro.Amb$knvaY7TNHe/rev.263
// This sketch builds on a prior work, "Untitled Sketch", created by Paula Van Erven
// http://bard117s14.sketchpad.cc/sp/pad/view/ro.A714RbgguPTUvp/rev.2
/* Self-Portrait II
Paula Van Erven
02/02/14
[email protected]
Description: For this modification of my original static self-portrait, I made a series of ellipses flashing around the screen to resemble snow. If the mouse goes below a certain point in Y, the color of the background changes. Furthermore, once the mouse if clicked, there is a random selection of fill colors that replace the originally established ones.*/
float x=200;
float y = 400;
void setup() {
size(800, 800);
smooth();
background(147, 203, 132);
frameRate(20);
}
void draw() {
if (mouseY > 400) {
background(181, 219, 242);
}
else {
background(147, 203, 132);
}
//head
fill(245, 218, 185);
ellipse(300, 300, 200, 300);
//eyebrows
rectMode(CENTER);
fill(93, 75, 53);
rect(350, 250, 45, 5);
rect(250, 250, 45, 5);
//eyes
fill(255);
ellipse(250, 270, 30, 10);
fill(57, 38, 14);
ellipse(250, 270, 15, 7);
fill(255);
ellipse(350, 270, 30, 10);
fill(57, 38, 14);
ellipse(350, 270, 15, 7);
//nose
fill(245, 225, 200);
rect(300, 300, 10, 30);
//nostrils
fill(232, 203, 169);
ellipse(310, 310, 5, 10);
ellipse(290, 310, 5, 10);
//top of nose
fill(242, 228, 210);
ellipse(300, 310, 10, 14);
//line eyebrow to nose
line(295, 290, 270, 247);
//line nose to mouth
line(305, 310, 285, 350);
//mouth
fill(229, 133, 88);
ellipse(285, 350, 20, 10);
ellipse(300, 350, 20, 10);
ellipse(292, 355, 20, 10);
line(300, 358, 320, 350);
//hair
fill(95, 63, 12);
line(300, 150, 400, 300);
line(320, 450, 400, 300);
line(300, 150, 200, 300);
ellipse(400, 350, 40, 40);
ellipse(400, 390, 40, 50);
ellipse(380, 400, 30, 30);
ellipse(420, 400, 30, 40);
ellipse(360, 420, 30, 40);
ellipse(385, 435, 50, 50);
ellipse(340, 450, 45, 55);
ellipse(360, 475, 50, 65);
ellipse(393, 475, 50, 70);
ellipse(410, 490, 50, 50);
ellipse(355, 500, 40, 55);
ellipse(335, 515, 35, 60);
//neck
fill(245, 218, 185);
line(270, 442, 230, 500);
line(230, 500, 320, 500);
float grayness = random(214, 255);
fill(grayness);
float x = random(0, 800);
float y = random(0, 800);
ellipse(x, y, 15, 15);
}
void mouseClicked() {
colorMode(HSB);
float h = random(0, 360);
fill(h, 100, 100);
}