You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
547 B
Java
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;
|
|
}
|
|
|
|
|
|
}
|