I want to draw a line with dynamic width, as shown in the attached figure. What should be the best approach for this.
Updated:
My task is to draw a line of finger movement. And the line width changes as the swipe speed changes. (Line width and swipe speed of the finger) are directly proportional.
, , , , , . , , 2 , , .
x , , .
: . , cocos2d.
iOS ( Mac OS) . cocos2d .
, . , Cocos, OpenGL. , , .
Smooth Freehand Drawing. .
[path addCurveToPoint:pts[3] controlPoint1:pts[1] controlPoint2:pts[2]];
bezierPaths. , , , .