setBounds(float xNegBoundary, float xPosBoundary, float zNegBoundary, float zPosBoundary);
setBounds(int xNegBoundary, int xPosBoundary, int zNegBoundary, int zPosBoundary);
This function is used to set the camera's movement boundaries. Illegal boundaries (as in, the x negative boundary being a greater number than the x positive boundary) causes an error to be printed to the Processing console letting you know which frame you tried to set the boundaries in.
import processing.opengl.*; import carlucci.viewer.*; Viewer myViewer; void setup(){ size(800,600,OPENGL); myViewer = new Viewer(this); myViewer.setBounds(-500,500,-1000,1000); }