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

Method ambient

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

Source from the content-addressed store, hash-verified

1124 // Ambient set/update
1125
1126 public void ambient(int rgb) {
1127 if (!openShape) {
1128 PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "ambient()");
1129 return;
1130 }
1131
1132 setAmbient = true;
1133 colorCalc(rgb);
1134 ambientColor = calcColor;
1135 }
1136
1137
1138 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