Name |
bezierVertex()贝塞尔曲线顶点 |
||||||||||||||||||
Examples |
noFill(); beginShape(); vertex(30, 20); bezierVertex(80, 0, 80, 75, 30, 75); endShape();
beginShape(); vertex(30, 20); bezierVertex(80, 0, 80, 75, 30, 75); bezierVertex(50, 80, 60, 25, 30, 20); endShape(); |
||||||||||||||||||
Description |
Specifies vertex coordinates for Bezier curves. Each call to bezierVertex() defines the position of two control points and one anchor point of a Bezier curve, adding a new segment to a line or shape. The first time bezierVertex() is used within a beginShape() call, it must be prefaced with a call to vertex() to set the first anchor point. This function must be used between beginShape() and endShape() and only when there is no MODE parameter specified to beginShape(). Using the 3D version requires rendering with P3D (see the Environment reference for more information). 指定贝塞尔曲线的顶点坐标。对 bezierVertex () 的每次调用都定义了两个控制点的位置和贝塞尔曲线的一个定位点, 将新线段添加到线条或形状中。第一次在 beginShape () 调用中使用 bezierVertex () 时, 必须先使用对顶点的调用 () 来设置第一个定位点。此函数必须在 beginShape () 和 endShape () 之间使用, 并且仅当没有指定的模式参数 beginShape ()。使用3D 版本需要用 P3D 进行渲染 (有关更多信息, 请参见环境参考) |
||||||||||||||||||
Syntax |
bezierVertex(x2, y2, x3, y3, x4, y4) bezierVertex(x2, y2, z2, x3, y3, z3, x4, y4, z4) |
||||||||||||||||||
Parameters |
|
||||||||||||||||||
Returns |
void |
||||||||||||||||||
Related |
curveVertex() |
- 本文固定链接: http://iprocessing.cn/2017/08/01/beziervertex贝塞尔曲线顶点/
- 转载请注明: 卡萨布兰卡 于 Processing编程艺术 发表