Py5Graphics.lights()

Py5Graphics.lights()#

Sets the default ambient light, directional light, falloff, and specular values.

Description#

Sets the default ambient light, directional light, falloff, and specular values. The defaults are ambientLight(128, 128, 128) and directionalLight(128, 128, 128, 0, 0, -1), lightFalloff(1, 0, 0), and lightSpecular(0, 0, 0).

This method is the same as lights() but linked to a Py5Graphics object. To see example code for how it can be used, see lights().

Underlying Processing method: PGraphics.lights

Signatures#

lights() -> None

Updated on March 06, 2023 02:49:26am UTC