Package processing.core

Examples of processing.core.PGraphics.background()


    saveImg.directionalLight(69, 69, 69, 0, 0, -1);
    saveImg.lightFalloff(1, 0, 0);

    saveImg.smooth(8);

    saveImg.background(255);

    saveImg.pushMatrix();
    // this.applyTranslationMatrix(g);

    saveImg.translate(-minX + border, -minY + border);
View Full Code Here


        PApplet.JAVA2D);
    pg.smooth();
    pg.beginDraw();
   
    pg.noStroke();
    pg.background(255);
    pg.rect(0,0,w,h);
   
   
    pg.smooth();
    pg.stroke(200, 200, 200);
View Full Code Here

    // Clears canvas (set to transparency, to not smudge previous map on panning)
    pg.clear();
    if (bgColor != null) {
      // Set background color if given (can also be transparent)
      pg.background(bgColor);
    }

    // translate and scale, from the middle
    pg.pushMatrix();
    pg.translate((float) innerOffsetX, (float) innerOffsetY);
View Full Code Here

    pg.beginDraw();

    if (tileImage != null) {
      pg.image(tileImage, 0, 0);
    } else {
      pg.background(250);
      pg.stroke(0);
      pg.rect(0, 0, pg.width, pg.height);
      pg.ellipse(pg.width / 2, pg.height / 2, pg.width - 5, pg.height - 5);
    }
View Full Code Here

    int rem = tl % centre.width;
    int n = tl / centre.width;
    n = (rem == 0) ? n : n + 1;
    int px = (tl - centre.width * n)/2;
    pg.beginDraw();
    pg.background(winApp.color(255,0));
    pg.imageMode(CORNER);

    while(px < tl){
      pg.image(centre, px, 0);
      px += centre.width;
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.