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

How to use
createShape
method
in
processing.core.PApplet

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: mirador/mirador

public PShape createShape(int kind, float... p) {
 return intf.app.createShape(kind, p);
}

origin: mirador/mirador

public PShape createShape(int type) {
 return intf.app.createShape(type);
}

origin: mirador/mirador

public PShape createShape() {
 return intf.app.createShape();
}
origin: ajavamind/Processing-Cardboard

static protected PShape createShape(PApplet parent, PShape src) {
 PShape dest = null;
 if (src.family == GROUP) {
  dest = parent.createShape(GROUP);
  PShape.copyGroup(parent, src, dest);
 } else if (src.family == PRIMITIVE) {
  dest = parent.createShape(src.kind, src.params);
  PShape.copyPrimitive(src, dest);
 } else if (src.family == GEOMETRY) {
  dest = parent.createShape(src.kind);
  PShape.copyGeometry(src, dest);
 } else if (src.family == PATH) {
  dest = parent.createShape(PATH);
  PShape.copyPath(src, dest);
 }
 dest.setName(src.name);
 return dest;
}
origin: org.processing/core

static protected PShape createShape(PApplet parent, PShape src) {
 PShape dest = null;
 if (src.family == GROUP) {
  dest = parent.createShape(GROUP);
  PShape.copyGroup(parent, src, dest);
 } else if (src.family == PRIMITIVE) {
  dest = parent.createShape(src.kind, src.params);
  PShape.copyPrimitive(src, dest);
 } else if (src.family == GEOMETRY) {
  dest = parent.createShape(src.kind);
  PShape.copyGeometry(src, dest);
 } else if (src.family == PATH) {
  dest = parent.createShape(PATH);
  PShape.copyPath(src, dest);
 }
 dest.setName(src.name);
 return dest;
}
origin: openimaj/openimaj

  /**
   * Detect faces using {@link HaarCascadeDetector}, return an {@link ArrayList} of
   * {@link PShape} instances. Note the {@link PShape} instances have no fill and
   * a colour: 255,0,0
   * @return detected faces
   */
  public ArrayList<PShape> faces(){
    ArrayList<PShape> faces = new ArrayList<PShape>();
    List<DetectedFace> detected = faceDetector.detectFaces(oiImage.flatten());
    for (DetectedFace detectedFace : detected) {
      Rectangle bounds = detectedFace.getBounds();
      PShape detectedPShape = this.parent.createShape(RECT,bounds.x,bounds.y,bounds.width,bounds.height);

      detectedPShape.setFill(false);
      detectedPShape.setStroke(this.parent.color(255f, 0, 0));
      faces.add(detectedPShape);
    }
    return faces;
  }
}
processing.corePAppletcreateShape

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)
  • 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
  • random
    ( begin auto-generated from random.xml ) Generates random numbers. Each time the random() function
  • parseInt,
  • random,
  • round,
  • split,
  • sqrt,
  • unhex,
  • arrayCopy,
  • ceil,
  • checkExtension

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Runner (org.openjdk.jmh.runner)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 17 Free Sublime Text 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