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

Method pre

core/src/processing/core/PShape.java:1362–1386  ·  view source on GitHub ↗
(PGraphics g)

Source from the content-addressed store, hash-verified

1360
1361
1362 protected void pre(PGraphics g) {
1363 if (matrix != null) {
1364 g.pushMatrix();
1365 g.applyMatrix(matrix);
1366 }
1367
1368 /*
1369 strokeSaved = g.stroke;
1370 strokeColorSaved = g.strokeColor;
1371 strokeWeightSaved = g.strokeWeight;
1372 strokeCapSaved = g.strokeCap;
1373 strokeJoinSaved = g.strokeJoin;
1374
1375 fillSaved = g.fill;
1376 fillColorSaved = g.fillColor;
1377
1378 rectModeSaved = g.rectMode;
1379 ellipseModeSaved = g.ellipseMode;
1380 shapeModeSaved = g.shapeMode;
1381 */
1382 if (style) {
1383 g.pushStyle();
1384 styles(g);
1385 }
1386 }
1387
1388
1389 protected void styles(PGraphics g) {

Callers 2

drawMethod · 0.95
drawImplMethod · 0.45

Calls 4

stylesMethod · 0.95
pushMatrixMethod · 0.45
applyMatrixMethod · 0.45
pushStyleMethod · 0.45

Tested by

no test coverage detected