Sets the specular color for lights.
Sets the specular color for lights. Like Py5Graphics.fill(), it affects only the elements which are created after it in the code. Specular refers to light which bounces off a surface in a preferred direction (rather than bouncing in all directions like a diffuse light) and is used for creating highlights. The specular quality of a light interacts with the specular material qualities set through the Py5Graphics.specular() and Py5Graphics.shininess() functions.
Underlying Processing method: PGraphics.lightSpecular
light_specular( v1: float, # red or hue value (depending on current color mode) v2: float, # green or saturation value (depending on current color mode) v3: float, # blue or brightness value (depending on current color mode) /, ) -> None
Updated on September 01, 2022 14:08:27pm UTC