首页 > 文档 > bezierVertex()贝塞尔曲线顶点
2017
08-01

bezierVertex()贝塞尔曲线顶点

Name

bezierVertex()贝塞尔曲线顶点

   

Examples

bezierVertex()贝塞尔曲线顶点 - 第1张  | Processing编程艺术bezierVertex()贝塞尔曲线顶点 - 第2张  | Processing编程艺术bezierVertex()贝塞尔曲线顶点 - 第3张  | Processing编程艺术

noFill();

beginShape();

vertex(30, 20);

bezierVertex(80, 0, 80, 75, 30, 75);

endShape();

bezierVertex()贝塞尔曲线顶点 - 第4张  | Processing编程艺术bezierVertex()贝塞尔曲线顶点 - 第5张  | Processing编程艺术bezierVertex()贝塞尔曲线顶点 - 第6张  | Processing编程艺术

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

x2

float: the x-coordinate of the 1st control point第一控制点X的坐标

y2

float: the y-coordinate of the 1st control point第一控制点Y的坐标

z2

float: the z-coordinate of the 1st control point第一控制点Z的坐标

x3

float: the x-coordinate of the 2nd control point第二控制点X的坐标

y3

float: the y-coordinate of the 2nd control point第二控制点Y的坐标

z3

float: the z-coordinate of the 2nd control point第二控制点Z的坐标

x4

float: the x-coordinate of the anchor point

锚点的X坐标

y4

float: the y-coordinate of the anchor point

锚点的Y坐标

z4

float: the z-coordinate of the anchor point

锚点的Z坐标

Returns

void

Related

curveVertex()
vertex()
quadraticVertex()
bezier()



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

留下一个回复

你的email不会被公开。