Anchors, handles, smooth joints
Each click places an anchor at a grid position. Dragging pulls out the two control handles of a cubic Bezier segment, and the code panel shows the matching C command with the handle coordinates. A joint is smooth only while the handles on both sides of the shared anchor stay on one straight line through it; move a handle off that line and the corner shows in both curve and code.