4 ms·
Note: You can't draw rounded corners using Bezier curves. Only an approximation. ;)
by Vektorweg 12y ago
Note: You can't draw rounded corners using Bezier curves. Only an approximation. ;)
- d-ronnqvist 12y agoTrue, but you can do it using arcs :)
- bchjam 12y agoWhile this is true, the author actually uses simple arcs on the path for the rounded corners (most Bezier interfaces are implemented in a path that also supports simple lines and arcs). In fact, there's only 1 Bezier in the path from the article, the wavy line in the very last image. See the addCurveToPoint and addQuadCurveToPoint methods for drawing cubic and quadratic Bezier curves