/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://studio.sketchpad.cc/sp/pad/view/ro.5GirVq-HGSK/rev.364
*
* authors:
* Coutinho
* Rodrigo de Albuquerque Pacheco Andrade
* Nicolas Pace
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
//by Rodrigo Andrade & Felippe Coutinho
float g=0,j,i;
void setup() { // this is run once.
background(99);
smooth();
fill(230)
beginShape()
// specify canvas size
size(500, 500);
}
void draw() { // this is run repeatedly.
background(99);
AmebaRox(mouseX,mouseY);
AmebaRox(250,250);
}
void AmebaRox(int posx, int posy){
smooth();
fill(230);
beginShape();
for(i=0;i<2*PI;i+=PI/64){
j=(i>6.2)?0:i;
vertex(posx+(20+80*noise(j,g))*cos(j),posy+(20+80*noise(j,g))*sin(j));
}
endShape();
g+=.01;
}