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))


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

Any advice?


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