I need a simple way to have splines that can be manipulated (up to 5 points) for use in a histogram. See screenshot.
Before I start coding this myself … is there already some code available that does this?
have a look at interpolation methods.
it get an input point1,point2, and a value from 0.0 to 1.0
the output is the point x,y on the curve.
see CosineInterpolate
https://paulbourke.net/miscellaneous/interpolation/
drawing in canvas would be
p1,p2 0 to 1
p2,p3 0 to 1
p3,p4 0 to 1
p4,p5 0 to 1
1 Like
Thank you MarkusR ! Interesting stuff.