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

Method setStrokeCap

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

Source from the content-addressed store, hash-verified

1253
1254
1255 void setStrokeCap(String linecap) {
1256 if (linecap.equals("inherit")) {
1257 // do nothing, will inherit automatically
1258
1259 } else if (linecap.equals("butt")) {
1260 strokeCap = PConstants.SQUARE;
1261
1262 } else if (linecap.equals("round")) {
1263 strokeCap = PConstants.ROUND;
1264
1265 } else if (linecap.equals("square")) {
1266 strokeCap = PConstants.PROJECT;
1267 }
1268 }
1269
1270
1271 void setFillOpacity(String opacityText) {

Callers 1

parseColorsMethod · 0.95

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected