/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://tafe.sketchpad.cc/sp/pad/view/ro.yny5Ip6---n/rev.236
*
* authors:
* marcus potts
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
void setup() {
size(500, 500);
background(#FFFCFD);
}
void draw() {
if (mousePressed) {fill(#000000);
} else {fill(#058CFF);
}
ellipse(mouseX, mouseY, 10, 10);
}
//the code wasn't working in here for some reason but it was working in processing program so i copied it over