Snake motion
These are approximation of sine curve by B-spline curve. If the number of control points increase, the approximation will be better.
Red: 4 control points Yellow: 5 control points Green: 6 control points Cyan: 7 control points Blue: 8 control points Black: 30 control points
code: https://gist.github.com/hyrodium/9c0130f660ab5430746319ab498a0fe9














