See also
version with draggable points on curve
.