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

Method setTint

core/src/processing/opengl/PShapeOpenGL.java:2034–2050  ·  view source on GitHub ↗
(boolean tint)

Source from the content-addressed store, hash-verified

2032
2033
2034 @Override
2035 public void setTint(boolean tint) {
2036 if (openShape) {
2037 PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setTint()");
2038 return;
2039 }
2040
2041 if (family == GROUP) {
2042 for (int i = 0; i < childCount; i++) {
2043 PShapeOpenGL child = (PShapeOpenGL) children[i];
2044 child.setTint(fill);
2045 }
2046 } else if (this.tint && !tint) {
2047 setTintImpl(0xFFFFFFFF);
2048 }
2049 this.tint = tint;
2050 }
2051
2052
2053 @Override

Callers 2

enableStyleMethod · 0.95
stylesMethod · 0.95

Calls 5

showWarningMethod · 0.95
setTintImplMethod · 0.95
javaToNativeARGBMethod · 0.95
markForTessellationMethod · 0.95
setModifiedPolyColorsMethod · 0.80

Tested by

no test coverage detected