Package processing.core

Examples of processing.core.PGraphics.clear()


  public void draw() {
    PGraphics pg = getInnerPG();
    pg.beginDraw();

    // 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);
    }
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.