Package processing.core

Examples of processing.core.PGraphics.ortho()


    // System.out.println(currentWorldTransform.origin.x);
    PGraphics saveImg = GLOBAL.applet.createGraphics((int) width,
        (int) height, PConstants.P3D);
    saveImg.beginDraw();
    saveImg.ortho(-(width / 2), (width / 2), -(height / 2), (height / 2),
        -1000, 10000);
    //saveImg.hint(PApplet.DISABLE_STROKE_PERSPECTIVE);

    saveImg.ambientLight(200, 200, 200);
    saveImg.directionalLight(69, 69, 69, 0, 0, -1);
View Full Code Here


      //sunflow.setDiffuseShader();
    }
*/
    diagramImg.beginDraw();
    //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);

View Full Code Here

    float height2 = Math.abs(maxY2 - minY2) + (imgBorder * 2);

    PGraphics saveImg = GLOBAL.applet.createGraphics((int) width,
        (int) height, PConstants.P3D);
    saveImg.beginDraw();
    saveImg.ortho(-(width / 2), (width / 2), -(height / 2), (height / 2),
        -1000, 10000);
    //saveImg.hint(PApplet.DISABLE_STROKE_PERSPECTIVE);

    saveImg.smooth(8);
    saveImg.pushMatrix();
View Full Code Here

    }else{
    renderer.ortho(-(int)(width / 2), (int)(width / 2), -(int)(height / 2), (int)(height / 2),
        -1000, 10000);
    }
    */
      renderer.ortho(-(int)(width / 2), (int)(width / 2), -(int)(height / 2), (int)(height / 2),
          -10000, 10000);
      //renderer.hint(PApplet.DISABLE_STROKE_PERSPECTIVE);

     //frustum();
    //camera();
View Full Code Here

    // gSun.camera();

    gSun.loadPixels();
    gSun.beginDraw();
    gSun.ortho(-(width / 2), (width / 2), -(height / 2), (height / 2),
        -1000, 10000);

    applyWorldTranslation(gSun);
    GLOBAL.sketchChairs.render(gSun);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.