shininess()#

Sets the amount of gloss in the surface of shapes.

Examples#

example picture for shininess()
 1def setup():
 2    py5.size(100, 100, py5.P3D)
 3    py5.background(0)
 4    py5.no_stroke()
 5    py5.background(0)
 6    py5.fill(0, 51, 102)
 7    py5.ambient_light(102, 102, 102)
 8    py5.light_specular(204, 204, 204)
 9    py5.directional_light(102, 102, 102, 0, 0, -1)
10    py5.specular(255, 255, 255)
11    py5.translate(30, 50, 0)
12    py5.shininess(1.0)
13    py5.sphere(20)  # left sphere
14    py5.translate(40, 0, 0)
15    py5.shininess(5.0)
16    py5.sphere(20)  # right sphere

Description#

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

Underlying Processing method: shininess

Syntax#

shininess(shine: float, /) -> None

Parameters#

  • shine: float - degree of shininess

Updated on November 12, 2021 11:30:58am UTC