/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://friendscentral.sketchpad.cc/sp/pad/view/ro.49ImPVEEh$H/rev.2
*
* authors:
* Colin Angevine
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
int r;
int g;
int b;
void setup() {
size(500, 500);
r = int(random(0, 255));
g = int(random(0, 255));
b = int(random(0, 255));
}
void draw() {
background(255);
fill(r, g, b);
// Make the head
ellipse(mouseX, mouseY, 200, 200);
fill(0);
// Make the left eye
ellipse(mouseX-50, mouseY-50, 50, 50);
// Make the right eye
ellipse(mouseX+50, mouseY-50, 50, 50);
}