bezier()

Shape / Curves

Description

Draws a cubic bezier curve on the screen.

Syntax

void bezier(float x1, float y1, float cx1, float cy1, float cx2, float cy2, float x2, float y2)

Parameters

NameTypeDescription
x1floatx of start point
y1floaty of start point
cx1floatx of first control point
cy1floaty of first control point
cx2floatx of second control point
cy2floaty of second control point
x2floatx of end point
y2floaty of end point

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...