a port of the Processing Visualization Language
Name

smooth()

Processing.js Behavior Processing.js always renders in smooth mode. This is a limitation of the HTML5 Canvas element.
Examples
example pic
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()

This reference is licensed under the CC BY-NC-SA 2.0 license:

Creative Commons License
Fork me on GitHub