This project is all about Beziers, construction and deconstruction. It uses p5js for the animations and interactivity.
A Bezier is a type of interpolation curve, which means you provide a set of points and the curve sort of approximates them. Specifically, you provide a start and end point and a series of control points, any of which can be arbitrarily spaced on the plane but are more often seen "between" the start and end points. The most popular type, the cubic Bezier, has
More formally, for a cubic
- Towards the endpoints the tangent to the curve is almost parallel with the line connecting the endpoint to the point next to it.
- Curve is contained in convex hull of control points
- Easily rasterized by just evaluating curve at many values of
$t$ - Really simple, stable, easy to compute
- Look smooth af
- Railway route or highway modeling, since roads need to have gradual changes
- Animation (objects move along a line with time determined by x axis and position determined by y axis)
- Computer-aided design systems and other Computer Graphics (graphics)
- Fonts (also graphics sort of)
- Trajectories of end effectors in robotics computed using Beziers
- Other fields- environment design, communications, networking, google it!
Explores the decomposition of a cubic Bezier into 2 smaller cubic Beziers at an arbitrary rational midpoint
In this widget users can add points, delete them in delete mode and move them around via click-and-drag. If two or more points are placed a "target point"
Similar to the previous widget, however rather than a single point