首页 > 文档 > bezierDetail()贝塞尔曲线分辨率
2017
07-28

bezierDetail()贝塞尔曲线分辨率

Name bezierDetail()贝塞尔曲线分辨率
Examples // Move the mouse left and right to see the detail change
void setup() {

size(100, 100, P3D);

noFill();

}

void draw() {

background(204);

int d = int(map(mouseX, 0, 100, 1, 20));

bezierDetail(d);

bezier(85, 20, 10, 10, 90, 90, 15, 80);

}

Description Sets the resolution at which Beziers display. The default value is 20. This function is only useful when using the P3D renderer; the default P2D renderer does not use this information.
设置曲线显示的分辨率。默认值为20。此函数仅在使用 P3D 渲染器时有用;默认的 P2D 呈现器不使用此信息。
Syntax bezierDetail(detail)
Parameters
detail int: resolution of the curves
整型:曲线分辨率
Returns void
Related curve()
curveVertex()
curveTightness()


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

留下一个回复

你的email不会被公开。