Sets the emissive color of the material used for drawing shapes drawn to the screen.
def setup(): py5.size(100, 100, py5.P3D) py5.background(0) py5.no_stroke() py5.background(0) py5.directional_light(204, 204, 204, .5, 0, -1) py5.emissive(0, 26, 51) py5.translate(70, 50, 0) py5.sphere(30)
Underlying Processing method: emissive
emissive( gray: float, # value between black and white, by default 0 to 255 /, ) -> None emissive( rgb: int, # color to set /, ) -> None emissive( 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) /, ) -> None
Updated on September 01, 2022 16:36:02pm UTC