Codota Logo
PApplet.popStyle
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
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

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • getApplicationContext (Context)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now