curveVertex()
Shape / VertexDescription
Specifies vertex coordinates for curves inside beginShape()/endShape(). At least 4 points required.
Syntax
void curveVertex(float x, float y)
Parameters
| Name | Type | Description |
|---|---|---|
| x | float | x-coordinate of the vertex |
| y | float | y-coordinate of the vertex |
Returns
voidRelated
Under the Hood
From Processing.h:
void curveVertex(float x, float y);
Under the Hood
From Processing.cpp:
void PApplet::curveVertex(float x,float y){if(inShape){shapeVerts.push_back({x,y});shapeVerts3D.push_back({x,y,0.0f});}}