/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://studio.sketchpad.cc/sp/pad/view/ro.ScQa3NmHfiO/rev.453
*
* authors:
* caleb mascarenhas
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
void setup(){
size(350,350);
smooth();
frameRate(1.2);
noLoop();
}
void draw(){
background(0);
beginShape();
for(int i =0;i<random(1,300);i++){
background(random(20,155),random(20,105),random(200,255));;
fill(random(200,255),random(20,55),random(70,155),255);
vertex(random(width),random(height));
curveVertex(random(width),random(height));
vertex(random(width),random(height));
}
endShape(CLOSE);
}
void keyPressed(){
redraw();
}
void mousePressed(){
redraw();
}
/*tweet
beginShape();for(int i=0;i<random(90);i++){background(0);fill(random(255),0,0);curveVertex(random(width),random(height));}endShape(CLOSE); */