Py5Graphics.no_lights()

Disable all lighting.

Description

Disable all lighting. Lighting is turned off by default and enabled with the Py5Graphics.lights() function. This function can be used to disable lighting so that 2D geometry (which does not require lighting) can be drawn after a set of lighted 3D geometry.

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

Underlying Java method: PGraphics.noLights

Syntax

no_lights() -> None

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