MCPcopy Create free account
hub / github.com/benfry/processing4 / styles

Method styles

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

Source from the content-addressed store, hash-verified

1444
1445
1446 protected void styles(PGraphics g) {
1447 // should not be necessary because using only the int version of color
1448 //parent.colorMode(PConstants.RGB, 255);
1449
1450 if (stroke) {
1451 g.stroke(strokeColor);
1452 g.strokeWeight(strokeWeight);
1453 g.strokeCap(strokeCap);
1454 g.strokeJoin(strokeJoin);
1455 } else {
1456 g.noStroke();
1457 }
1458
1459 if (fill) {
1460 //System.out.println("filling " + PApplet.hex(fillColor));
1461 g.fill(fillColor);
1462 } else {
1463 g.noFill();
1464 }
1465 }
1466
1467
1468 protected void post(PGraphics g) {

Callers 1

preMethod · 0.95

Calls 7

strokeMethod · 0.45
strokeWeightMethod · 0.45
strokeCapMethod · 0.45
strokeJoinMethod · 0.45
noStrokeMethod · 0.45
fillMethod · 0.45
noFillMethod · 0.45

Tested by

no test coverage detected