Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: f64b0b1526
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (36 sloc) 0.786 kB
class PreviewBox {
int xMin = 20;
int yMin = 20;
int xMax = width-20;
int yMax = height-20;
int high = height - yMin*2;
int wide = floor((2*high)/3);
PreviewBox(int tempxMin, int tempyMin, int tempxMax, int tempyMax) {
xMin = tempxMin;
yMin = tempyMin;
xMax = tempxMax;
yMax = tempyMax;
}
public void makeIt(String orientation){
noFill();
if (orientation == "landscape") {
rect(width/2, height/2, high, wide);
} else {
rect(width/2, height/2, wide, high);
}
//print(high);
//println(wide);
}
public int xMin() {
return xMin;
}
public int xMax() {
return xMin;
}
public int yMin() {
return xMin;
}
public int yMax() {
return xMin;
}
}
Jump to Line
Something went wrong with that request. Please try again.