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=126, v3=0, would cause all the red light to
(int rgb)
| 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 |
no test coverage detected