dangos.push(new Dango(random(width), random(height), random(2.5, 20)));
for(let i=0;i<dangos.length;i++){
dangos[i].pos.x += random(-1,1) * 15;
dangos[i].pos.y += random(-1,1) * 15;
dangos[i].angle += random(-1,1) * PI*0.01;
function Dango(x, y, r) {
this.angle = random(-1,1) * PI;
this.colors = rand_color();
translate(this.pos.x, this.pos.y);
draw_dango(this.r, this.colors);
["#ffffff", "#C0D8C0", "#2FDD92"],
["#ffffff", "#BAFFB4", "#557C55"],
["#ffffff", "#06FF00", "#B1E693"],
["#ffffff", "#C1FFD7", "#206A5D"],
color_pat = shuffle( random(color_pat) );
function draw_dango(size, color_pat){
line(0, -size*1.8, 0, size*2);
dango(size, color_pat[0]);
dango(size, color_pat[1]);
dango(size, color_pat[2]);
function dango(size, fcolor){
ellipse(size/8*2, -size/10, size/14);
ellipse(-size/8, -size/10, size/14);
arc(size/8, size/20, size/10*1.25, size/10, -PI/2*1.25, PI/2*1.25);
arc(size/8*0.6, size/16*3.5, size/4, size/10, 0, PI);
save("img_" + month() + day() + hour() + minute() + second() + ".png");