首页 > 文档 > noSmooth()取消平滑
2017
07-03

noSmooth()取消平滑

  1. noSmooth()

Name名称):noSmooth()//取消平滑

Examples例子):

 

size(100, 100);

noSmooth();

noStroke();

background(0);

ellipse(30, 48, 36, 36);

ellipse(70, 48, 36, 36);

 

Description描述):Draws all geometry and fonts with jagged (aliased) edges and images when hard edges between the pixels when enlarged rather than interpoloating pixels. Note that smooth() is active by default, so it is necessary to call noSmooth() to disable smoothing of geometry, fonts, and images. Since the release of Processing 3.0, the noSmooth() function can only be run once for each sketch, either at the top of a sketch without a setup(), or after the size() function when used in a sketch with setup(). See the examples above for both scenarios.

绘制所有的几何形状和字体的边缘和图像的边缘和图像,当像素之间的硬边被放大时,而不是相互之间的像素。注意,Smooth()在默认情况下是活动的,因此必须调用noSmooth()来禁用几何、字体和图像的平滑。由于处理3.0的版本,noSmooth()函数只能为每个示意图运行一次,或者在没有setup()的草图的顶部,或者在使用setup()的草图中使用size()函数之后。请参见上述两种场景的示例。

Syntax(语法):noSmooth()

Returns返回值):Void(

Related相关函数):Smooth()

 

 

 

 



最后编辑:
作者:卡萨布兰卡
这个作者貌似有点懒,什么都没有留下。

留下一个回复

你的email不会被公开。