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

Method tint

core/src/processing/core/PShape.java:1050–1059  ·  view source on GitHub ↗
(int rgb)

Source from the content-addressed store, hash-verified

1048
1049
1050 public void tint(int rgb) {
1051 if (!openShape) {
1052 PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "tint()");
1053 return;
1054 }
1055
1056 tint = true;
1057 colorCalc(rgb);
1058 tintColor = calcColor;
1059 }
1060
1061
1062 public void tint(int rgb, float alpha) {

Callers

nothing calls this directly

Calls 2

showWarningMethod · 0.95
colorCalcMethod · 0.95

Tested by

no test coverage detected