开发者

How to draw a polyBezier or polyCurve using Canvas HTML

开发者 https://www.devze.com 2022-12-18 22:16 出处:网络
I\'m trying to draw a curve through multiple points (more than 3) . I tried to draw those poin开发者_运维问答ts using available lineTo(), bezierCurveTo().

I'm trying to draw a curve through multiple points (more than 3) .

I tried to draw those poin开发者_运维问答ts using available lineTo(), bezierCurveTo().

Could anyone help me solve this ? May be there is some workaround to draw this using arc() function ?


Bezier splines do not (necessarily) go through their control points, but Catmull-Rom splines do. They require an extra pair of control points beyond the set that you want to interpolate (one before, one after).

The CakeJS package (http://code.google.com/p/cakejs/) has a Catmull-Rom facility, though I don't know much about it other than that it apparently exists.

0

精彩评论

暂无评论...
验证码 换一张
取 消