Examples of beginDraw()


Examples of processing.core.PGraphics.beginDraw()

    applet.rect(0, 0, labelBottom.getWidth(), labelBottom.getHeight());
    applet.popMatrix();

    // prepare for the 'clipping' (drawing  into an offline graphics port)
    PGraphics pg = applet.createGraphics(content.getWidth(), content.getHeight(), PConstants.JAVA2D);
    pg.beginDraw();
    // draw the graphs
    pg.noFill();
    pg.pushMatrix();
    pg.translate(0, content.getHeight() / 2);
    // iterate through all the graphs
View Full Code Here

Examples of processing.core.PGraphics.beginDraw()

   * ensures that the horizon is updated periodically.
   */
  public void draw() {
    // prepare for 'clipping' (drawing  into an offline graphics port)
    PGraphics pg = applet.createGraphics((int )content.getWidth(), (int )content.getHeight(), PApplet.JAVA2D);
    pg.beginDraw();
   
    // get the current angles for pitch and roll and convert them to radian degrees
    double pitchAngle = Math.toRadians(pitch.getValue());
    double rollAngle = Math.toRadians(roll.getValue());
    // get the current values for elevator and aileron and convert them to angles (according to the maximum deflection for the flaps)
View Full Code Here

Examples of processing.core.PGraphics.beginDraw()

            PGraphics image = processing.createGraphics(imageConfig.width, imageConfig.height, JAVA2D);
            try {
                wordCram.withCustomCanvas(image);

                image.beginDraw();
                wordCram.drawAll();
                image.endDraw();

                image.save(imageConfig.fileName);
View Full Code Here

Examples of processing.core.PGraphics.beginDraw()

    // ":"+height2);

    // 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);
View Full Code Here

Examples of processing.core.PGraphics.beginDraw()

      sunflow = (P5SunflowAPIAPI) diagramImg;
      // set shader
      //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();
View Full Code Here

Examples of processing.core.PGraphics.beginDraw()

    float width2 = Math.abs(maxX2 - minX2) + (imgBorder * 2);
    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);
View Full Code Here

Examples of processing.core.PGraphics.beginDraw()

    // sunflow.allocate();

    // 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

Examples of processing.core.PGraphics.beginDraw()

  public static PImage makeImgDown(float w, float h, PImage img) {

    PGraphics pg = appletStatic.createGraphics((int) w, (int) h,
        PApplet.JAVA2D);
    pg.smooth();
    pg.beginDraw();
   
    pg.noStroke();
    pg.background(255);
    pg.rect(0,0,w,h);
   
View Full Code Here

Examples of processing.core.PGraphics.beginDraw()

  public static PImage makeImgOver(int w, int h, PImage img) {

    PGraphics pg = appletStatic.createGraphics(w, h, PApplet.JAVA2D);
    pg.smooth();
    pg.beginDraw();
   
    pg.noStroke();

    pg.smooth();
    pg.strokeWeight(1);
View Full Code Here

Examples of processing.core.PGraphics.beginDraw()

  public static PImage makeImgUp(float w, float h, PImage img) {

    PGraphics pg = appletStatic.createGraphics((int) w, (int) h,
        PApplet.JAVA2D );
    pg.smooth();
    pg.beginDraw();
    pg.smooth();
   
    pg.noStroke();

    pg.stroke(200, 200, 200);
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.