euglena/src/oldfiles/shrinkingWindow.java
2016-07-10 18:33:27 -07:00

19 lines
547 B
Java

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;
}
}