Name |
curveDetail()曲线分辨率 |
||||
Examples |
void setup() { size(100, 100, P3D); noFill(); noLoop(); }
void draw() { curveDetail(1); drawCurves(-15); stroke(126); curveDetail(2); drawCurves(0); stroke(255); curveDetail(4); drawCurves(15); }
void drawCurves(float y) { curve( 5, 28+y, 5, 28+y, 73, 26+y, 73, 63+y); curve( 5, 28+y, 73, 26+y, 73, 63+y, 15, 67+y); curve(73, 26+y, 73, 63+y, 15, 67+y, 15, 67+y); } |
||||
Description |
Sets the resolution at which curves display. The default value is 20. This function is only useful when using the P3D renderer as the default P2D renderer does not use this information. 设置曲线显示的分辨率。默认值为20。此函数仅在使用 P3D 呈现器时有用, 因为默认的 P2D 呈现程序不使用此信息。 |
||||
Syntax |
curveDetail(detail) |
||||
Parameters |
|
||||
Returns |
void |
||||
Related |
curve() |
- 本文固定链接: http://iprocessing.cn/2017/07/29/curvedetail曲线分辨率/
- 转载请注明: 卡萨布兰卡 于 Processing编程艺术 发表