Reference smooth()

smooth()

Draws certain features with smooth (antialiased) edges.

smooth() is active by default. In 2D mode, noSmooth() is helpful for scaling up images without blurring. The functions don't affect shapes or fonts.

In WebGL mode, noSmooth() causes all shapes to be drawn with jagged (aliased) edges. The functions don't affect images or fonts.

Examples


Related References