code
This page shows how bézier curves can be drawn as graphical interpolator of G excess energy. Drag the line ends or the control points to change the curve. Equations are described at: http://html5tutorial.com/how-to-draw-n-grade-bezier-curve-with-canvas-api/
The original code of Bézier was developed by Craig Buckler of OptimalWorks.net for SitePoint.com.