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

How to use
popStyle
method
in
processing.core.PApplet

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

origin: mirador/mirador

public void popStyle() {
 intf.app.popStyle();
}
origin: ruby-processing/JRubyArt

private void draw() {
  applet.pushStyle();
  applet.noStroke();
  if (horizontal) {
    drawHorizontal();
  } else {
    drawVertical();
  }
  applet.popStyle();
}
origin: ruby-processing/JRubyArt

@Override
public void draw() {
  applet.pushStyle();
  applet.noStroke();
  drawGui();
  displayText();
  applet.popStyle();
  change();
}
origin: ruby-processing/JRubyArt

@Override
public void draw() {
  applet.pushStyle();
  applet.noStroke();
  drawGui();
  displayText();
  applet.popStyle();
  change();
}
origin: poqudrof/PapARt

public void updateWithIDColors(DepthAnalysisImpl kinect, ArrayList<TrackedDepthPoint> touchs) {
  Vec3D[] points = kinect.getDepthPoints();
  nbVertices = 0;
  nbColors = 0;
  int k = 0;
  parentApplet.pushStyle();
  parentApplet.colorMode(HSB, 8, 100, 100);
  int id = 0;
  for (TrackedDepthPoint touch : touchs) {
    int c = this.parentApplet.color(id % 8, 100, 100);
    int c2 = javaToNativeARGB(c);
    id++;
    for (DepthDataElementProjected dde : touch.getDepthDataElements()) {
      Vec3D p = dde.depthPoint;
      verticesJava[k++] = p.x;
      verticesJava[k++] = p.y;
      verticesJava[k++] = -p.z;
      verticesJava[k++] = 1;
      nbVertices++;
      colorsJava[nbColors++] = c2;
    }
  }
  parentApplet.popStyle();
  verticesNative.rewind();
  verticesNative.put(verticesJava, 0, nbVertices * 4);
  colorsNative.rewind();
  colorsNative.put(colorsJava, 0, nbColors);
}
origin: poqudrof/PapARt

public void updateWithCamColors(DepthAnalysisImpl analysis, ArrayList<TrackedDepthPoint> touchs) {
  Vec3D[] points = analysis.getDepthPoints();
  int[] pointColors = analysis.getDepthData().pointColors;
  nbVertices = 0;
  nbColors = 0;
  int k = 0;
  parentApplet.pushStyle();
  parentApplet.colorMode(HSB, 8, 100, 100);
  int id = 0;
  for (TrackedDepthPoint touch : touchs) {
    for (DepthDataElementProjected dde : touch.getDepthDataElements()) {
      int c = pointColors[dde.offset];
      int c2 = javaToNativeARGB(c);
      Vec3D p = dde.depthPoint;
      verticesJava[k++] = p.x;
      verticesJava[k++] = p.y;
      verticesJava[k++] = -p.z;
      verticesJava[k++] = 1;
      nbVertices++;
      colorsJava[nbColors++] = c2;
    }
  }
  parentApplet.popStyle();
  verticesNative.rewind();
  verticesNative.put(verticesJava, 0, nbVertices * 4);
  colorsNative.rewind();
  colorsNative.put(colorsJava, 0, nbColors);
}
origin: poqudrof/PapARt

parentApplet.popStyle();
verticesNative.rewind();
verticesNative.put(verticesJava, 0, nbVertices * 4);
processing.corePAppletpopStyle

Javadoc

( begin auto-generated from popStyle.xml ) The pushStyle() function saves the current style settings and popStyle() restores the prior settings; these functions are always used together. They allow you to change the style settings and later return to what you had. When a new style is started with pushStyle(), it builds on the current style information. The pushStyle() and popStyle() functions can be embedded to provide more control (see the second example above for a demonstration.) ( end auto-generated )

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

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 21 Best IntelliJ Plugins
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