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

Method setStrokeCap

core/src/processing/opengl/PShapeOpenGL.java:2357–2378  ·  view source on GitHub ↗
(int cap)

Source from the content-addressed store, hash-verified

2355
2356
2357 @Override
2358 public void setStrokeCap(int cap) {
2359 if (openShape) {
2360 PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setStrokeCap()");
2361 return;
2362 }
2363
2364 if (family == GROUP) {
2365 for (int i = 0; i < childCount; i++) {
2366 PShapeOpenGL child = (PShapeOpenGL) children[i];
2367 child.setStrokeCap(cap);
2368 }
2369 } else {
2370 if (is2D() && strokeCap != cap) {
2371 // Changing the stroke cap on a 2D shape needs a
2372 // re-tessellation in order to replace the old cap
2373 // geometry.
2374 markForTessellation();
2375 }
2376 strokeCap = cap;
2377 }
2378 }
2379
2380
2381 @Override

Callers 3

enableStyleMethod · 0.95
stylesMethod · 0.95
tessellateImplMethod · 0.45

Calls 3

showWarningMethod · 0.95
markForTessellationMethod · 0.95
is2DMethod · 0.45

Tested by

no test coverage detected