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

Method ambient

core/src/processing/core/PGraphics.java:6869–6879  ·  view source on GitHub ↗

( begin auto-generated from ambient.xml ) Sets the ambient reflectance for shapes drawn to the screen. This is combined with the ambient light component of environment. The color components set through the parameters define the reflectance. For example in the default color mode, setting v1=255, v2=

(int rgb)

Source from the content-addressed store, hash-verified

6867 * @see PGraphics#shininess(float)
6868 */
6869 public void ambient(int rgb) {
6870// if (((rgb & 0xff000000) == 0) && (rgb <= colorModeX)) {
6871// ambient((float) rgb);
6872//
6873// } else {
6874// colorCalcARGB(rgb, colorModeA);
6875// ambientFromCalc();
6876// }
6877 colorCalc(rgb);
6878 ambientFromCalc();
6879 }
6880
6881/**
6882 * @param gray number specifying value between white and black

Callers 1

styleMethod · 0.95

Calls 2

colorCalcMethod · 0.95
ambientFromCalcMethod · 0.95

Tested by

no test coverage detected