 |
 |
 |
 |
Name |
|
bezierVertex() |
 |
|
|
Examples |
|
 |
beginShape(LINE_STRIP);
vertex(30, 20);
bezierVertex(80, 0, 80, 75, 30, 75);
endShape();
|
 |
 |
beginShape(POLYGON);
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() can only be used with the drawing types POLYGON, LINE_LOOP, and LINE_STRIP. Using the 3D version of requires rendering with P3D or OPENGL (see the Environment reference for more information). |
 |
|
|
Syntax |
|
bezierVertex(x1, y1, x2, y2, x3, y3)
bezierVertex(x1, y1, z1, x2, y2, z2, x3, y3, z3)
|
 |
|
|
Parameters |
|
x1 |
|
The x-coordinate of 1st control point, either a float or int
|
y1 |
|
The y-coordinate of 1st control point, either a float or int
|
z1 |
|
The z-coordinate of 1st control point, either a float or int
|
x2 |
|
The x-coordinate of 2nd control point, either a float or int
|
y2 |
|
The y-coordinate of 2nd control point, either a float or int
|
z2 |
|
The z-coordinate of 2nd control point, either a float or int
|
x3 |
|
The x-coordinate of anchor point, either a float or int
|
y3 |
|
The y-coordinate of anchor point, either a float or int
|
z3 |
|
The z-coordinate of anchor point, either a float or int
|
|
 |
|
|
Usage |
|
Web & Application |
 |
|
|
Related |
|
curveVertex() vertex() bezier() |
|
|