How to get control points for a curve from a set of points which make a straight line?
问题 I have a set of n points which make a line, but I would like to have a curve instead of a line.For doing curves in processing, there are control points which are needed, I would like to know how can I get control points from a set on n points. Also I would be dragging curves, hence I would need to find new control points all the time I presume? 回答1: Well, you can basically just parse the array of coordinates and use them to create a curveVertex() shape in Processing like this: // create an