Py5Graphics.no_smooth()

Draws all geometry and fonts with jagged (aliased) edges and images with hard edges between the pixels when enlarged rather than interpolating pixels.

Description

Draws all geometry and fonts with jagged (aliased) edges and images with hard edges between the pixels when enlarged rather than interpolating pixels. Note that Py5Graphics.smooth() is active by default, so it is necessary to call no_smooth() to disable smoothing of geometry, fonts, and images. The no_smooth() method can only be run once for a Py5Graphics object and it must be called before Py5Graphics.begin_draw().

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

Underlying Java method: PGraphics.noSmooth

Syntax

no_smooth() -> None

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