Stroked path not smooth

Hi guys,

I’m trying to plot the curves of a filter curve. I create a path and I use a series of lineTo, then I stroke the path using strokePath(myPath, PathStrokeType(1.0))

44

I don’t understand why I get this kind of ugly curve, instead of a smooth one.

Any advice?

Thanks!

fixed: I were using roundToInt in the lineTo arguments, while leaving them as float solves the issue.
Thanks!