/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://dflab.sketchpad.cc/sp/pad/view/ro.QHGuWiX0lno/rev.2
*
* authors:
* Silas Silva
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
//
//
float px;
float py;
float jump = 70;
void setup() {
size(300, 300);
background(170,55,90);
px = random (width);
py = random (height);
}
//
//
void draw() {
float npx = constrain (px + random (-jump, jump), 23, width);
float npy = constrain (py + random (-jump, jump), 234, height);
fill(0, 145, 110);
strokeWeight(5);
ellipse (px, py, npx, npy);
px = npx;
py = npy;
}