MCPcopy Index your code
hub / github.com/benfry/processing4 / createShape

Method createShape

core/src/processing/core/PGraphics.java:1809–1813  ·  view source on GitHub ↗

The createShape() function is used to define a new shape. Once created, this shape can be drawn with the shape() function. The basic way to use the function defines new primitive shapes. One of the following parameters are used as the first parameter: ELLIPSE , RECT , AR

()

Source from the content-addressed store, hash-verified

1807 * @see PApplet#loadShape(String)
1808 */
1809 public PShape createShape() {
1810 // Defaults to GEOMETRY (rather than GROUP like the default constructor)
1811 // because that's how people will use it within a sketch.
1812 return createShape(PShape.GEOMETRY);
1813 }
1814
1815
1816 // POINTS, LINES, TRIANGLES, TRIANGLE_FAN, TRIANGLE_STRIP, QUADS, QUAD_STRIP

Callers

nothing calls this directly

Calls 4

createShapeFamilyMethod · 0.95
is3DMethod · 0.95
is2DMethod · 0.95
createShapePrimitiveMethod · 0.95

Tested by

no test coverage detected