smooth() \ Language (API) \ Processing 1.0
Language (A-Z) \
Libraries \
Tools \
Environment
Reference for Processing version 1.2. If you have a previous version, use the reference included with your software. If you see any errors or have suggestions, please let us know.
If you prefer a more technical reference, visit the Processing Javadoc.
Name
smooth()
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.
Note that smooth() will also improve image quality of resized images, and noSmooth() will disable image (and font) smoothing altogether.
Starting in Processing 1.0, smoothing is always enabled with the OPENGL renderer setting. The smooth() and noSmooth() methods are ignored. See the hint() reference for information on disabling smoothing with OpenGL.
In the current release, smoothing is imperfect with the P2D and P3D renderers. In some situations, drawing with smooth() will create small hairlines inside filled shapes or inaccuracies with shape depth can cause odd visual artifacts at the edges of shapes.
Syntax
smooth()
Returns
None
Usage
Web & Application
Related
noSmooth()hint()size()
Updated on June 14, 2010 12:05:29pm EDT
Processing was initiated by Ben Fry and Casey Reas. It is developed by a small team of volunteers.
© Info \
Site hosted by Media Temple!
Wyszukiwarka
Podobne podstrony:
Fascia is able to contract a smooth muscles Ulm Uniw111027093301?c tewsB smoothieapple spinach smoothieSmoothRideInnocent smoothies?vanced7 smoothingSmoother Terry BissonsmoothsmoothAlien Ant?rm Smooth CriminalsmoothInnocent smoothies elementarywięcej podobnych podstron