curve()
Shape / CurvesDescription
Draws a curved line on the screen (Catmull-Rom spline).
Syntax
void curve(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3)
Parameters
| Name | Type | Description |
|---|---|---|
| x0 | float | x of beginning control point |
| y0 | float | y of beginning control point |
| x1 | float | x of first point |
| y1 | float | y of first point |
| x2 | float | x of second point |
| y2 | float | y of second point |
| x3 | float | x of ending control point |
| y3 | float | y of ending control point |
Returns
voidRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...