首页 > 文档 > curveDetail()曲线分辨率
2017
07-29

curveDetail()曲线分辨率

Name

curveDetail()曲线分辨率

   

Examples

curveDetail()曲线分辨率 - 第1张  | Processing编程艺术

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

detail

int: resolution of the curves

 

整数型:曲线分辨率

Returns

void

Related

curve()
curveVertex()
curveTightness()



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

留下一个回复

你的email不会被公开。