Codota Logo
processing.core
Code IndexAdd Codota to your IDE (free)

How to use processing.core

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: opentripplanner/OpenTripPlanner

String[] fonts = PFont.list();
String[] preferredFonts = { "Mono", "Courier" };
PFont font = null;
origin: org.processing/core

/** Danger: available for advanced subclassing, but here be dragons. */
protected void showSurface() {
 if (getGraphics().displayable()) {
  surface.setVisible(true);
 }
}
origin: ajavamind/Processing-Cardboard

public void pushStyle() {
 if (styleStackDepth == styleStack.length) {
  styleStack = (PStyle[]) PApplet.expand(styleStack);
 }
 if (styleStack[styleStackDepth] == null) {
  styleStack[styleStackDepth] = new PStyle();
 }
 PStyle s = styleStack[styleStackDepth++];
 getStyle(s);
}
origin: org.processing/core

public void fill(int rgb) {
 if (!openShape) {
  PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "fill()");
  return;
 }
 fill = true;
 colorCalc(rgb);
 fillColor = calcColor;
 if (!setAmbient) {
  ambientColor = fillColor;
 }
}
origin: mirador/mirador

public PGraphics createCanvas(int w, int h, String renderer, int quality) {
 PGraphics pg = app.createGraphics(w, h, renderer);
 pg.smooth(quality);
 return pg;
} 

origin: org.processing/core

public void setTint(int fill) {
 if (openShape) {
  PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setTint()");
  return;
 }
 tintColor = fill;
 if (vertices != null) {
  for  (int i = 0; i < vertices.length; i++) {
   setFill(i, fill);
  }
 }
}
origin: org.processing/core

/**
 * @param z forward/back translation
 */
public void translate(float x, float y, float z) {
 checkMatrix(3);
 matrix.translate(x, y, z);
}
origin: org.processing/core

@Override
public void setSize(int w, int h) {
 deprecationWarning("setSize");
 surface.setSize(w, h);
}
origin: org.processing/core

public void applyMatrix(float n00, float n01, float n02, float n03,
            float n10, float n11, float n12, float n13,
            float n20, float n21, float n22, float n23,
            float n30, float n31, float n32, float n33) {
 checkMatrix(3);
 matrix.apply(n00, n01, n02, n03,
        n10, n11, n12, n13,
        n20, n21, n22, n23,
        n30, n31, n32, n33);
}
origin: org.processing/core

/**
 * @param x percentage to scale the object in the x-axis
 * @param y percentage to scale the object in the y-axis
 * @param z percentage to scale the object in the z-axis
 */
 public void scale(float x, float y, float z) {
  checkMatrix(3);
  matrix.scale(x, y, z);
 }

origin: org.processing/core

@Override
public void setTitle(String title) {
 deprecationWarning("setTitle");
 surface.setTitle(title);
}
origin: org.processing/core

public void stroke(float x, float y, float z, float alpha) {
 if (!openShape) {
  PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "stroke()");
  return;
 }
 stroke = true;
 colorCalc(x, y, z, alpha);
 strokeColor = calcColor;
}
origin: org.processing/core

public void tint(float x, float y, float z) {
 if (!openShape) {
  PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "tint()");
  return;
 }
 tint = true;
 colorCalc(x, y, z);
 tintColor = calcColor;
}
origin: org.processing/core

public void specular(float gray) {
 if (!openShape) {
  PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "specular()");
  return;
 }
 colorCalc(gray);
 specularColor = calcColor;
}
origin: org.processing/core

public void tint(float x, float y, float z, float alpha) {
 if (!openShape) {
  PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "tint()");
  return;
 }
 tint = true;
 colorCalc(x, y, z, alpha);
 tintColor = calcColor;
}
origin: org.processing/core

public void ambient(float gray) {
 if (!openShape) {
  PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "ambient()");
  return;
 }
 setAmbient = true;
 colorCalc(gray);
 ambientColor = calcColor;
}
origin: org.processing/core

public void specular(int rgb) {
 if (!openShape) {
  PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "specular()");
  return;
 }
 colorCalc(rgb);
 specularColor = calcColor;
}
origin: org.processing/core

public void fill(float gray) {
 if (!openShape) {
  PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "fill()");
  return;
 }
 fill = true;
 colorCalc(gray);
 fillColor = calcColor;
 if (!setAmbient) {
  ambientColor = fillColor;
 }
}
origin: org.processing/core

public void stroke(float x, float y, float z) {
 if (!openShape) {
  PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "stroke()");
  return;
 }
 stroke = true;
 colorCalc(x, y, z);
 strokeColor = calcColor;
}
origin: org.processing/core

public void tint(int rgb) {
 if (!openShape) {
  PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "tint()");
  return;
 }
 tint = true;
 colorCalc(rgb);
 tintColor = calcColor;
}
processing.core

Most used classes

  • PApplet
  • PGraphics
  • PShape
    ( begin auto-generated from PShape.xml ) Datatype for storing shapes. Processing can currently load
  • PSurface
  • PFont
    Grayscale bitmap font class used by Processing. Awful (and by that, I mean awesome) ASCII (non-)art
  • PMatrix2D,
  • PMatrix3D,
  • PVector,
  • PMatrix,
  • PApplet$AsyncImageLoader,
  • PApplet$RegisteredMethods,
  • PFont$Glyph,
  • PGraphics$AsyncImageSaver,
  • PShapeOBJ$OBJFace,
  • PShapeOBJ$OBJMaterial,
  • PShapeOBJ,
  • PShapeSVG$Font,
  • PShapeSVG$FontFace,
  • PShapeSVG$FontGlyph
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