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 Java method: PGraphics.lights

Syntax

lights() -> None

Updated on September 11, 2021 16:51:34pm UTC