Tabnine Logo
PApplet.pushStyle
Code IndexAdd Tabnine to your IDE (free)

How to use
pushStyle
method
in
processing.core.PApplet

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

origin: mirador/mirador

public void pushStyle() {
 intf.app.pushStyle();
}
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

int k = 0;
parentApplet.pushStyle();
processing.corePAppletpushStyle

Javadoc

( begin auto-generated from pushStyle.xml ) The pushStyle() function saves the current style settings and popStyle() restores the prior settings. Note that 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.)

The style information controlled by the following functions are included in the style: fill(), stroke(), tint(), strokeWeight(), strokeCap(), strokeJoin(), imageMode(), rectMode(), ellipseMode(), shapeMode(), colorMode(), textAlign(), textFont(), textMode(), textSize(), textLeading(), emissive(), specular(), shininess(), ambient() ( 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

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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