curveVertex()ShapeVertexApplication & WebcurveVertex_.gif
beginShape(LINE_STRIP);
curveVertex(84, 91);
curveVertex(84, 91);
curveVertex(68, 19);
curveVertex(21, 17);
curveVertex(32, 100);
curveVertex(32, 100);
endShape();
Specifies vertex coordinates for curves. This function may only be called between beginShape() and endShape(). The curveVertex() function is an implementation of Catmull-Rom splines.
curveVertex(x, y)
curveVertex(x, y, z)
The x-coordinate of the vertex, either a float or intThe y-coordinate of the vertex, either a float or intThe z-coordinate of the vertex, either a float or intNone
beginShape()
endShape()
vertex()
bezierVertex()
1.0FunctionCore