// method to draw the menu void menu() { noStroke(); fill(255); rect(img[activeImg].width+1,0,menuWidth,height); image(menu,img[activeImg].width+29,30); noFill(); for(int i = 0; i < img.length; i++) { if(i == activeImg) stroke(100); else stroke(200); image(imgThumb[i],img[activeImg].width+29+i*39,57); rect(img[activeImg].width+29+i*39,57,34,34); } speedSlider.draw(); lengthSlider.draw(); stroke(200); noFill(); if(ai) rect(img[activeImg].width+27,147,13,13); if(reproduction) rect(img[activeImg].width+27,171,13,13); if(outline) rect(img[activeImg].width+27,195,13,13); if(come) rect(img[activeImg].width+27,255,14,13); if(loupe) rect(img[activeImg].width+27,279,13,13); if(showStatistic) rect(img[activeImg].width+27,327,13,13); }