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.

उदाहरण

Notice any errors or typos? Please let us know. Please feel free to edit src/core/shape/attributes.js and open a pull request!

संबंधित संदर्भ