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

Method setStrokeCap

core/src/processing/core/PShapeSVG.java:1248–1261  ·  view source on GitHub ↗
(String linecap)

Source from the content-addressed store, hash-verified

1246
1247
1248 void setStrokeCap(String linecap) {
1249 if (linecap.equals("inherit")) {
1250 // do nothing, will inherit automatically
1251
1252 } else if (linecap.equals("butt")) {
1253 strokeCap = PConstants.SQUARE;
1254
1255 } else if (linecap.equals("round")) {
1256 strokeCap = PConstants.ROUND;
1257
1258 } else if (linecap.equals("square")) {
1259 strokeCap = PConstants.PROJECT;
1260 }
1261 }
1262
1263
1264 void setFillOpacity(String opacityText) {

Callers 1

parseColorsMethod · 0.95

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected