points under the cursor are fed into a fitting algorithm (Douglas-peucker), visualized in cyan
a spline is drawn interpolating between those points (Catmull-Rom), visualized in magenta
cyan is the structural, graph representation and magenta the presentational
#gamedev