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

Method styles

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

Source from the content-addressed store, hash-verified

1387
1388
1389 protected void styles(PGraphics g) {
1390 // should not be necessary because using only the int version of color
1391 //parent.colorMode(PConstants.RGB, 255);
1392
1393 if (stroke) {
1394 g.stroke(strokeColor);
1395 g.strokeWeight(strokeWeight);
1396 g.strokeCap(strokeCap);
1397 g.strokeJoin(strokeJoin);
1398 } else {
1399 g.noStroke();
1400 }
1401
1402 if (fill) {
1403 //System.out.println("filling " + PApplet.hex(fillColor));
1404 g.fill(fillColor);
1405 } else {
1406 g.noFill();
1407 }
1408 }
1409
1410
1411 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