I'm generating a 2D centripetal Catmull-Rom spline in JavaScript from random control points on a canvas
. My intent is to be able to extract a certain defined number (say 10) of intermediate points between the control points of the spline, exactly as requested and solved in this one found post dedicated to the Mathematica software.
In my case I would need to generate them via pure JavaScript or Python scripting, so I would to know if there is a way to convert those Mathematica's commands with some JavaScript or Python module/framework, thank you.