Through the internet I found the quadratic beizer curve by given three control points. But what should I do if I have a set of points?
x = (1 - t) * (1 - t) * p[0].x + 2 * (1 - t) * t * p[1].x + t * t * p[2].x;
y = (1 - t) * (1 - t) * p[0].y + 2 * (1 - t) * t * p[1].y + t * t * p[2].y;
In my program, I will have a touch event, when user touches it and move the finger around the screen, the program starts to draw curve.
If I am doing Android I can use quadTo but I can't do it that way coz I want to do it in many platform