参考 noSmooth()

noSmooth()

以锯齿状(非平滑)边缘绘制某些特征。

smooth() 默认处于激活状态。在 2D 模式下,noSmooth() 对于放大图像而避免模糊非常有用。这些函数不影响形状或字体。

在 WebGL 模式下,noSmooth() 会导致所有形状以锯齿状(非平滑)边缘绘制。这些函数不影响图片或字体。

示例

This page is generated from the comments in src/core/shape/attributes.js . Please feel free to edit it and submit a pull request!

相关参考