void shrinkingWindow(float speed, int red, int green, int blue, int borderWidth){ // clearDisplay(); fill(0,0,0); strokeWeight(borderWidth); // Controls thickness of line stroke(color(red, green, blue)); rectMode(CENTER); rect(convertXCoord(centerX), convertYCoord(centerY), (screenWidth - menu.width)/calibrator.magx-t, (screenHeight)/calibrator.magx-t); if (screenHeight/calibrator.magx-t > 20){ t = t + speed*1; } else { t = t; } }