/** * Handles. * * Click and drag the white boxes to change their position. */ Handle[] handles; int num; void setup() { size(200, 200); num = height/15; handles = new Handle[num]; int hsize = 10; for(int i=0; i= x && mouseX <= x+width && mouseY >= y && mouseY <= y+height) { return true; } else { return false; } } int lock(int val, int minv, int maxv) { return min(max(val, minv), maxv); }