MCPcopy Index your code
hub / github.com/processing/processing / shape

Method shape

core/src/processing/core/PGraphics.java:3985–4002  ·  view source on GitHub ↗
(PShape shape)

Source from the content-addressed store, hash-verified

3983
3984
3985 public void shape(PShape shape) {
3986 if (shape.isVisible()) { // don't do expensive matrix ops if invisible
3987 // Flushing any remaining geometry generated in the immediate mode
3988 // to avoid depth-sorting issues.
3989 flush();
3990
3991 if (shapeMode == CENTER) {
3992 pushMatrix();
3993 translate(-shape.getWidth()/2, -shape.getHeight()/2);
3994 }
3995
3996 shape.draw(this); // needs to handle recorder too
3997
3998 if (shapeMode == CENTER) {
3999 popMatrix();
4000 }
4001 }
4002 }
4003
4004
4005 /**

Callers

nothing calls this directly

Calls 10

flushMethod · 0.95
pushMatrixMethod · 0.95
translateMethod · 0.95
popMatrixMethod · 0.95
showMissingWarningMethod · 0.95
scaleMethod · 0.95
isVisibleMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected