If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Course: Unlisted resources area > Unit 2

Lesson 1: ProcessingJS documentation

bezierPoint(a, b, c, d, t)

Evaluates the bezier curve at point t for points a, b, c, d. The parameter t varies between 0 and 1, a and d are points on the curve, and b and c are the control points. This can be done once with the x coordinates and a second time with the y coordinates to get the location of a bezier curve at t.
Parameters:
NameDescription
acoordinate of first point on the curve
bcoordinate of first control point
ccoordinate of second control point
dcoordinate of second point on the curve
tvalue between 0 and 1

Want to join the conversation?

No posts yet.