Py5Graphics.emissive()

Sets the emissive color of the material used for drawing shapes drawn to the screen.

Description

Sets the emissive color of the material used for drawing shapes drawn to the screen. Use in combination with Py5Graphics.ambient(), Py5Graphics.specular(), and Py5Graphics.shininess() to set the material properties of shapes.

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

Underlying Java method: PGraphics.emissive

Syntax

emissive(gray: float, /) -> None
emissive(rgb: int, /) -> None
emissive(v1: float, v2: float, v3: float, /) -> None

Parameters

  • gray: float - value between black and white, by default 0 to 255

  • rgb: int - color to set

  • v1: float - red or hue value (depending on current color mode)

  • v2: float - green or saturation value (depending on current color mode)

  • v3: float - blue or brightness value (depending on current color mode)

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