curve()

Shape / Curves

Description

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

NameTypeDescription
x0floatx of beginning control point
y0floaty of beginning control point
x1floatx of first point
y1floaty of first point
x2floatx of second point
y2floaty of second point
x3floatx of ending control point
y3floaty of ending control point

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...