Name |
curveVertex()曲线顶点 |
||||||||||
Examples |
noFill(); beginShape(); curveVertex(84, 91); curveVertex(84, 91); curveVertex(68, 19); curveVertex(21, 17); curveVertex(32, 100); curveVertex(32, 100); endShape(); |
||||||||||
Description |
Specifies vertex coordinates for curves. This function may only be used between beginShape() and endShape() and only when there is no MODE parameter specified to beginShape(). The first and last points in a series of curveVertex() lines will be used to guide the beginning and end of a the curve. A minimum of four points is required to draw a tiny curve between the second and third points. Adding a fifth point with curveVertex() will draw the curve between the second, third, and fourth points. The curveVertex() function is an implementation of Catmull-Rom splines. Using the 3D version requires rendering with P3D (see the Environment reference for more information). 指定曲线的顶点坐标。此函数只能在 beginShape () 和 endShape () 之间使用, 并且仅当没有指定为 beginShape () 的模式参数。一系列 curveVertex () 行中的第一个和最后一个点将用于引导曲线的开始和结束。在第二和第三点之间绘制一条极小的曲线需要至少四点。在 curveVertex () 中添加第五点将在第二、第三和第四点之间绘制曲线。curveVertex () 函数是一个卡特莫尔-rom 样条的实现。使用3D 版本需要用 P3D 进行渲染 (有关更多信息, 请参见环境参考)。 |
||||||||||
Syntax |
curveVertex(x, y) curveVertex(x, y, z) |
||||||||||
Parameters |
|
||||||||||
Returns |
void |
||||||||||
Related |
curve() |
- 本文固定链接: http://iprocessing.cn/2017/08/01/curvevertex曲线顶点/
- 转载请注明: 卡萨布兰卡 于 Processing编程艺术 发表