Py5Graphics.shininess()

Sets the amount of gloss in the surface of shapes.

Description

Sets the amount of gloss in the surface of shapes. Use in combination with Py5Graphics.ambient(), Py5Graphics.specular(), and Py5Graphics.emissive() to set the material properties of shapes.

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

Underlying Java method: PGraphics.shininess

Syntax

shininess(shine: float, /) -> None

Parameters

  • shine: float - degree of shininess

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