nl_tokens: Cubic Bezier curve path through points . Ported from C# implementation by Oleg V . Polikarpotchkin and Peter Lee ( http : // www . codeproject . com / KB / graphics / BezierSpline . aspx ) .
pl_tokens: function ( <mask> ) { var controlPoints = this . getCurveControlPoints ( points ) ; var path = [ 'M' , points [ 0 ] . x , points [ 0 ] . y ] ; for ( var i = 0 ; i < controlPoints [ 0 ] . length ; i ++ ) { path . push ( 'C' , controlPoints [ 0 ] [ i ] . x , controlPoints [ 0 ] [ i ] . y , controlPoints [ 1 ] [ i ] . x , controlPoints [ 1 ] [ i ] . y , points [ i + 1 ] . x , points [ i + 1 ] . y ) ; } return path ; }