congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PApplet.background
Code IndexAdd Tabnine to your IDE (free)

How to use
background
method
in
processing.core.PApplet

Best Java code snippets using processing.core.PApplet.background (Showing top 2 results out of 315)

origin: ruby-processing/JRubyArt

/**
* Simple signature for background hides need to call app
* @param col int
*/
public void background(int col) {
 this.app.background(col);
}
origin: mirador/mirador

public void draw() {    
 if (requestedRecord) {
  recording = true;
  app.beginRecord(PDF, recFilename);
 }
 
 app.background(bckColor);
 state = DRAW;
 clearDrawn();    
 root.drawChildren();
 state = IDLE;
 
 if (recording) {
  app.endRecord();
  requestedRecord = false;
 }
     
 if (SHOW_DEBUG_INFO && app.frameCount % 180 == 0) {
  System.out.println("framerate: " + app.frameRate);      
  System.out.println("number of drawn widgets    : " + drawnWidgets.size());
 }
}

processing.corePAppletbackground

Javadoc

Set the background to a grayscale value, based on the current colorMode.

Popular methods of PApplet

  • constrain
  • createGraphics
    Create an offscreen graphics surface for drawing, in this case for a renderer that writes to a file
  • loadStrings
    ( begin auto-generated from loadStrings.xml ) Reads the contents of a file or url and creates a Stri
  • saveStrings
    ( begin auto-generated from saveStrings.xml ) Writes an array of strings to a file, one line per str
  • abs
  • createImage
    ( begin auto-generated from createImage.xml ) Creates a new PImage (the datatype for storing images)
  • createShape
  • createWriter
    ( begin auto-generated from createWriter.xml ) Creates a new file in the sketch folder, and a PrintW
  • loadImage
  • main
    main() method for running this class from the command line. Usage: PApplet [options] [s
  • max
  • parseInt
  • max,
  • parseInt,
  • random,
  • round,
  • split,
  • sqrt,
  • unhex,
  • arrayCopy,
  • ceil,
  • checkExtension

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now