/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://dflab.sketchpad.cc/sp/pad/view/ro.Xj81DPScMTC/rev.69
*
* authors:
* Rita Isabel Pardal
* 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, "Sara Reis - 03 - The Girl with Kaleidoskope Eyes", created by Sara Reis
// http://dflab.sketchpad.cc/sp/pad/view/ro.9tPdMtFAQQMFpT/rev.760
float px[];
float py[];
int num_particles = 500;
void setup() {
size(200, 200);
background(120,30,50);
px = new float[num_particles];
py = new float[num_particles];
for (int i = 0; i < num_particles; i++) {
px[i] = random (width);
py[i] = random (height);
}
}
void draw() {
background(250,55,31);
for (int i = 0; i < num_particles; i = i+1) {
px[i] = constrain (px[i] + random ( -20, 10), 0, width);
py[i] = constrain (py[i] + random ( -20, 15), 0, height);
strokeWeight(20);
fill(153, 255, 10)
ellipse (px[i], py[i], 5, 5);
}
}