MCPcopy Create free account
hub / github.com/benfry/processing4 / ambient

Method ambient

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

Source from the content-addressed store, hash-verified

1159 // Ambient set/update
1160
1161 public void ambient(int rgb) {
1162 if (!openShape) {
1163 PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "ambient()");
1164 return;
1165 }
1166
1167 setAmbient = true;
1168 colorCalc(rgb);
1169 ambientColor = calcColor;
1170 }
1171
1172
1173 public void ambient(float gray) {

Callers 2

fillMethod · 0.95
defaultSettingsMethod · 0.45

Calls 2

showWarningMethod · 0.95
colorCalcMethod · 0.95

Tested by

no test coverage detected