Note that we always draw the arc from red to blue.
Drag control points to observe.
Source code in contained in this HTML file.