Name |
quadraticVertex()二次贝塞尔曲线的顶点坐标 |
||||||||||||
Examples |
noFill(); strokeWeight(4); beginShape(); vertex(20, 20); quadraticVertex(80, 20, 50, 50); endShape();
noFill(); strokeWeight(4); beginShape(); vertex(20, 20); quadraticVertex(80, 20, 50, 50); quadraticVertex(20, 80, 80, 80); vertex(80, 60); endShape(); |
||||||||||||
Description |
Specifies vertex coordinates for quadratic Bezier curves. Each call to quadraticVertex() defines the position of one control points and one anchor point of a Bezier curve, adding a new segment to a line or shape. The first time quadraticVertex() 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). 指定二次贝塞尔曲线的顶点坐标。对 quadraticVertex () 的每次调用都定义了贝塞尔曲线的一个控制点和一个锚点的位置, 并将新线段添加到线条或形状中。第一次在 beginShape () 调用中使用 quadraticVertex () 时, 必须先使用对顶点的调用 () 来设置第一个定位点。此函数必须在 beginShape () 和 endShape () 之间使用, 并且仅当没有指定的模式参数 beginShape ()。使用3D 版本需要用 P3D 进行渲染 (有关更多信息, 请参见环境参考)。 |
||||||||||||
Syntax |
quadraticVertex(cx, cy, x3, y3) quadraticVertex(cx, cy, cz, x3, y3, z3) |
||||||||||||
Parameters |
|
||||||||||||
Returns |
void |
||||||||||||
Related |
curveVertex() |
- 本文固定链接: http://iprocessing.cn/2017/08/01/quadraticvertex二次贝塞尔曲线的顶点坐标/
- 转载请注明: 卡萨布兰卡 于 Processing编程艺术 发表