//diagramImg.background(255,255,255,1);
diagramImg.ortho(-(w / 2), (w / 2), -(h / 2), (h / 2), -1000, 10000);
//diagramImg.hint(PApplet.DISABLE_STROKE_PERSPECTIVE);
diagramImg.pushMatrix();
diagramImg.smooth(8);
if (useCurrentView) {
diagramImg.translate(w / 2, h / 2, 0);