/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://bard117f12.sketchpad.cc/sp/pad/view/ro.j6-6MXUeNvK/rev.4
*
* authors:
* Ashley Wilens
* 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, "Untitled Sketch", created by Ashley Wilens
//
int circleX = 100;
int circleY = 350;
int xDirection = 1;
int xSpeed =2;
int rainX =300;
int rainY = 150;
int blueX = 25;
int blueY = 160;
int dropX = 100;
int dropY = 150;
int blueeY = 150;
int blueeX = 200;
int rainnY = 150;
int rainnX = 300;
int skyY= 150;
int skyX=400;
int sadY= 150;
int sadX=500;
int liquidY = 150;
int liquidX = 600;
int tearsY = 150;
int tearsX =700;
int v = 0;
void setup() {
size(600, 600);
smooth();
frameRate(30);
}
void draw() {
if (mouseX > 200){
background(0,236,2550);
}
background(mouseX, mouseY, 0);
fill(v+255, 0, 0);
//circleY = circleY + 3;
circleX = circleX+(xSpeed*xDirection);
println(circleX+ " " + circleY);
ellipse(circleX, circleY, 100, 100);
if (circleX >420) {
xDirection=-1;
println("");
}
if (circleX < 202) {
xDirection=1;
}
//head right
stroke(0);
fill(250, 149, 152);
ellipse(500, 330, 50, 50);
//eyes
noStroke();
fill(0);
ellipse(510, 325, 5, 5);
ellipse(490, 325, 5, 5);
//mouth
stroke(10);
fill(0);
line(490, 340, 510, 340);
//body
stroke(10);
fill(0);
line(500, 460, 500, 354);
//arms
stroke(0);
fill(0);
line(500, 400, 470, 350);
line(500, 386, 480, 350);
//Head left
stroke(0);
fill(250, 149, 152);
ellipse(100, 330, 50, 50);
//eyes
noStroke();
fill(0);
ellipse(110, 325, 5, 5);
ellipse(90, 325, 5, 5);
//mouth
stroke(10);
fill(0);
line(90, 340, 110, 340);
//body
stroke(10);
fill(0);
line(100, 460, 100, 354);
//arm
stroke(0);
fill(0);
line(100, 390, 150, 350);
line(100, 380, 140, 350);
//rain
fill(0, 22, 250);
ellipse(rainX, rainY, 13, 30);
rainY = rainY + 6;
//rain 2
ellipse(blueX, blueY, 13, 30);
blueY = blueY + 6;
//rain 3
ellipse(dropX, dropY, 13, 30);
dropY = dropY + 6;
//rain4
ellipse(blueeX, blueeY, 13, 30);
blueeY = blueeY+ 6;
//rain6
ellipse(rainnX, rainnY, 13, 30);
rainnY = rainnY +6;
//rain7
ellipse(skyX, skyY, 13, 30);
skyY = skyY + 6;
//rain8
ellipse(sadX, sadY, 13, 30);
sadY =sadY + 6;
//rain5
ellipse(liquidX, liquidY, 13, 30);
liquidY = liquidY+ 6;
//rain9
ellipse(tearsX, tearsY, 13, 30);
tearsY = tearsY + 6;
//rain10
/* ellipse(wetX, wetY, 13, 30);
wetY = wetY + 3;
*/
//sun
fill(v+250, v+255, v+0);
ellipse(500, 100, 100, 100);
}
void mousePressed() {
v=v+10;
}