I am creating an app that allows the user to do some hand-drawing. The problem is I draw lines between the points where the user moved his finger so the resulting shape is somewhat jagged.
My question is how can I smooth the drawing? What is the best algorithm for dealing with this kind of situation?