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

Method specular

core/src/processing/core/PGraphics.java:6928–6938  ·  view source on GitHub ↗

( begin auto-generated from specular.xml ) Sets the specular color of the materials used for shapes drawn to the screen, which sets the color of hightlights. Specular refers to light which bounces off a surface in a perferred direction (rather than bouncing in all directions like a diffuse light).

(int rgb)

Source from the content-addressed store, hash-verified

6926 * @see PGraphics#shininess(float)
6927 */
6928 public void specular(int rgb) {
6929// if (((rgb & 0xff000000) == 0) && (rgb <= colorModeX)) {
6930// specular((float) rgb);
6931//
6932// } else {
6933// colorCalcARGB(rgb, colorModeA);
6934// specularFromCalc();
6935// }
6936 colorCalc(rgb);
6937 specularFromCalc();
6938 }
6939
6940
6941/**

Callers 1

styleMethod · 0.95

Calls 2

colorCalcMethod · 0.95
specularFromCalcMethod · 0.95

Tested by

no test coverage detected