curveVertex()

Shape / Vertex

Description

Specifies vertex coordinates for curves inside beginShape()/endShape(). At least 4 points required.

Syntax

void curveVertex(float x, float y)

Parameters

NameTypeDescription
xfloatx-coordinate of the vertex
yfloaty-coordinate of the vertex

Returns

void

Related

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});}}