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

Method tint

core/src/processing/core/PGraphics.java:6668–6671  ·  view source on GitHub ↗

Sets the fill value for displaying images. Images can be tinted to specified colors or made transparent by including an alpha value. To apply transparency to an image without affecting its color, use white as the tint color and specify an alpha value. For instance, tint(255, 128)

(int rgb)

Source from the content-addressed store, hash-verified

6666 * @see PGraphics#image(PImage, float, float, float, float)
6667 */
6668 public void tint(int rgb) {
6669 colorCalc(rgb);
6670 tintFromCalc();
6671 }
6672
6673
6674 /**

Callers 2

reapplySettingsMethod · 0.95
styleMethod · 0.95

Calls 2

colorCalcMethod · 0.95
tintFromCalcMethod · 0.95

Tested by

no test coverage detected