Name | smooth() |
||
---|---|---|---|
Processing.js Behavior | Processing.js always renders in smooth mode. This is a limitation of the HTML5 Canvas element. | ||
Examples | background(0); ellipse(30, 48, 36, 36); smooth(); ellipse(70, 48, 36, 36); |
||
Description | Draws all geometry with smooth (anti-aliased) edges. This will slow down the frame rate of the application, but will enhance the visual refinement.
Starting with release 0124, when using the default (JAVA2D) renderer, smooth() will also improve image quality of resized images. |
||
Syntax | smooth() |
||
Parameters | |||
Usage | Web & Application | ||
Related | noSmooth() size() |