Dear Yannick,
thanks a lot for that function. Looks pretty neat. However, I tried to play
around a little bit, in adding a second path (as I have myself many). But I
don't get the code working then, other than with the first path. Thought about
adding an ID:
<path id="path_1" stroke="red" fill="none" d="M8,8 L25,30 L40,60 L150,180
L350,150"/>
<path id="path_2" stroke="black" fill="none" d="M10,10 L30,50 L60,40
L200,80 L250,250"/>
But didn't succeed either then in smoothing both lines.
Sorry if this is dumb question to ask, but I don't see how to apply this
technique on all paths (with a certain ID)...
Thanks a lot for your help,
Stef
--- In [email protected], yannick.bochatay@... wrote:
>
> I can talk about CariSVG since I wrote it. I would be glad if you used it,
> but be careful it's a draft, there's already many things I need to improve.
> If you need to smooth a path, you can try this little function :
> http://jsfiddle.net/ybochatay/gQEZw/
> raphaeljs is a great library since it works with IE6 (fallback in VML), but I
> don't think it will help to smooth your curves.
> Cheers
>
> Yannick
> http://ybochatay.fr
>
> ----- Mail original -----
> De: "Stefan Schwarzer" <st.schwarzer@...>
> Ã: [email protected]
> Envoyé: Jeudi 5 Janvier 2012 11:18:33
> Objet: [svg-developers] Bézier Curves or Catmull-Rom Curves
>
>
>
>
>
>
> Hi there,
>
> I'd like to see my lines with some dozen points a little less zigg-zagged,
> and instead more nicely curved ("smoothed" in Excel). In the moment, my
> script is not based on any SVG library, so I would need to add that
> functionality by hand. However, there seem to be not many possibilities. One
> is the use of a prototype script [1]. And then the use of SVG libs [2] [3]...
>
> Can someone point me to some other solution, or is this it?
>
> Thanks a lot for any tips!
>
> Stef
>
> [1] http://schepers.cc/getting-to-the-point
> [2] http://ybochatay.fr/CariSVG/CariCurve/
> [3] http://raphaeljs.com/
>
------------------------------------
-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/