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 September 01, 2022 14:08:27pm UTC