PeasyCam minimum/maximum distance

Hi, I have been looking around for answers to this question but I haven’t seen any particularly for how PeasyCam works.

In my code, my objects are being cut off when I rotate the camera. I have fiddled with the cam.setMinimumDistance and cam.setMaximumDistance to no significant effect (i have it set to “cam” not “camera”). Can someone explain to me how the work, or tell me how to avoid my objects being cut off (particularly the blue rectangle on drag)?

Also, I want to position the blue rectangle so that the top looks diamond shaped, in an orthographic perspective, and it goes down off the screen. Could someone help me with the rotation degrees for that? Thank you all in advance

here’s my code thus far:

import peasy.*;
boolean booleantrue=true;
boolean booleanfalse=false;

PeasyCam cam;

void setup() {
  size(900, 900, P3D);
  cam = new PeasyCam(this, 100);
  cam.setActive(booleantrue);
  cam.setMinimumDistance(50);
  cam.setMaximumDistance(500);
  cam.setWheelHandler(null);
  ortho();
}

void draw() {
  background(0);
  pushMatrix();
  translate(0,-150,0);
  pushMatrix();
  rotateX(-.5);
  rotateY(-.5);
  rotateZ(frameCount*0.005); //frameCount*.005 looks best for the aesthetic
  rotateX(frameCount*0.005);
  rotateY(frameCount*0.005);
  //rotateX(mouseX*0.0025);     //cube will move with mouse (slightly)
  //rotateY(mouseY*0.0025);
  fill(255);
  box(80);
  
  fill(50, 50, 255);
  popMatrix();
  popMatrix();
  
  //blue rectangle
  pushMatrix();
  translate(0,200,0);
  rotateZ(radians(45));
  rotateX(radians(90));
  rotateY(radians(90));
  box(200,200,500);
  popMatrix();

}

Could these posts help wrt clipping? https://forum.processing.org/one/topic/peasycam-not-displaying-everything-all-the-time.html or https://forum.processing.org/one/topic/clipping-planes.html

Kf