MCPcopy Index your code
hub / github.com/benfry/processing4 / drawShape

Method drawShape

core/src/processing/awt/PGraphicsJava2D.java:1345–1360  ·  view source on GitHub ↗
(Shape s)

Source from the content-addressed store, hash-verified

1343
1344
1345 protected void drawShape(Shape s) {
1346 if (fillGradient) {
1347 g2.setPaint(fillGradientObject);
1348 g2.fill(s);
1349 } else if (fill) {
1350 g2.setColor(fillColorObject);
1351 g2.fill(s);
1352 }
1353 if (strokeGradient) {
1354 g2.setPaint(strokeGradientObject);
1355 g2.draw(s);
1356 } else if (stroke) {
1357 g2.setColor(strokeColorObject);
1358 g2.draw(s);
1359 }
1360 }
1361
1362
1363

Callers 5

endShapeMethod · 0.95
triangleMethod · 0.95
quadMethod · 0.95
rectImplMethod · 0.95
ellipseImplMethod · 0.95

Calls 3

fillMethod · 0.45
setColorMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected