I found some well documented python code: • https://github.com/volkerp/fitCurves/blob/master/fitCurves.py
And some Javascript code: • https://github.com/soswow/fit-curve/blob/master/src/fit-curve.js The javascript code could be called from Livecode. To see the demo of how this would work in the browser: • http://soswow.github.io/fit-curve/demo/ • https://codepen.io/Sphinxxxx/pen/jrLxvQ Would seem to be a useful library to have available in native LC? 📆 Schedule a call with me On 14 Jun 2022, 12:30 +0100, David Bovill <david.bov...@gmail.com>, wrote: > Searching around for a function in LC. It should take the points of a graphic > and return a smoothed the points of a smoothed line. I’ve found lots of > bezier style experiments but no “curve fitting” code. Anyone have a function? > > 📆 Schedule a call with me > On 6 Dec 2015, 12:10 +0000, Michael Kristensen > <michael-kristen...@dsa-net.dk>, wrote: > > Pointlist to Bezier > > > > Hi there > > > > I wonder if any have code to take a point-list and turn it into a > > smooth-lined bezier. > > > > There are explanations around the net for C-code but it is very hard to > > understand. > > > > (one here said to be good but misses the graphics:) > > http://www.benknowscode.com/2012/09/path-interpolation-using-cubic-bezier_9742.html > > > > What could this code be used for. > > > > — Tracing an image > > > > — Smoothing the lines drawn by a user > > > > plus a lot more Im sure > > > > Thanks > > Michael > > _______________________________________________ > > use-livecode mailing list > > use-livecode@lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode