ArrayList<Integer> beads=new ArrayList(0);void setup(){size(500,500);}void draw(){colorMode(RGB, 250);background(240,250,250);noFill();strokeWeight(5);ellipse(250,200,200,200);colorMode(HSB, 100);textSize(20);fill(10);text("Delete",80,450);text("Save",380,450);textSize(40);text("Bracelet maker",100,50);for(int i=0;i<7;i++){strokeWeight(1);fill(i*100/7,50,50);ellipse(i*50+100,400,20,20);}translate(250,200);rotate(-1.8);for(int i=0;i<beads.size();i++){rotate(.209);strokeWeight(1);fill(beads.get(i)*100/7,50,50);ellipse(100,0,20,20);}}void mousePressed(){for(int b=0;b<7;b++){if(11>dist(mouseX,mouseY,b*50+100,400)){beads.add(b);}}if(mouseX>80&&mouseX<160&&mouseY>430&&mouseY<450&&beads.size()>0){beads.remove(beads.size()-1);}if(mouseX>380&&mouseX<430&&mouseY>430&&mouseY<450){selectOutput("Save","d");}}void d(File s) {get(100,55,300,300).save(s.getAbsolutePath());}