Py5Graphics.reset_shader()

Restores the default shaders.

Description

Restores the default shaders. Code that runs after reset_shader() will not be affected by previously defined shaders.

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

Underlying Java method: PGraphics.resetShader

Syntax

reset_shader() -> None
reset_shader(kind: int, /) -> None

Parameters

  • kind: int - type of shader, either POINTS, LINES, or TRIANGLES

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