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

Method setStrokeJoin

core/src/processing/opengl/PShapeOpenGL.java:2333–2354  ·  view source on GitHub ↗
(int join)

Source from the content-addressed store, hash-verified

2331
2332
2333 @Override
2334 public void setStrokeJoin(int join) {
2335 if (openShape) {
2336 PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setStrokeJoin()");
2337 return;
2338 }
2339
2340 if (family == GROUP) {
2341 for (int i = 0; i < childCount; i++) {
2342 PShapeOpenGL child = (PShapeOpenGL) children[i];
2343 child.setStrokeJoin(join);
2344 }
2345 } else {
2346 if (is2D() && strokeJoin != join) {
2347 // Changing the stroke join on a 2D shape needs a
2348 // re-tessellation in order to replace the old join
2349 // geometry.
2350 markForTessellation();
2351 }
2352 strokeJoin = join;
2353 }
2354 }
2355
2356
2357 @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