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
()
| 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 |
nothing calls this directly
no test coverage detected