11-12-2020, 03:35 AM
Cmart - Yes, please send me the song and xml files.
MartinH - While your pictures are accurate for how bezier curves work, the code is actually drawing quadratic bezier curves between every point reported while drawing, and the control point is calculated as being halfway between the points. So it really is more like very small, almost straight lines, but it still handles small curvatures. So no noticeable smoothing occurs (and if it did, you would see it in the middle of drawing, not when you raise the stylus). You are correct that if fewer points are reported, there could be more smoothing going on, but you would see that while drawing, not after releasing the stylus.
Thanks,
Mike
MartinH - While your pictures are accurate for how bezier curves work, the code is actually drawing quadratic bezier curves between every point reported while drawing, and the control point is calculated as being halfway between the points. So it really is more like very small, almost straight lines, but it still handles small curvatures. So no noticeable smoothing occurs (and if it did, you would see it in the middle of drawing, not when you raise the stylus). You are correct that if fewer points are reported, there could be more smoothing going on, but you would see that while drawing, not after releasing the stylus.
Thanks,
Mike