我怎么能在拉斐尔画印度卢比符号

时间:2012-12-16 15:01:29

标签: javascript raphael

是否知道如何使用raphael绘制印度卢比符号。

请为我提供有用的解决方案。

2 个答案:

答案 0 :(得分:5)

选中此FIDDLE

var rupee = paper.path("M152.511,23.119h41.031L209.256-0.5H55.214L39.5,23.119h26.739c27.086,0,52.084,2.092,62.081,24.743H55.214 L39.5,71.482h91.769c-0.002,0.053-0.002,0.102-0.002,0.155c0,16.974-14.106,43.01-60.685,43.01l-22.537-0.026l0.025,22.068 L138.329,249.5h40.195l-93.42-116.709c38.456-2.074,74.523-23.563,79.722-61.309h28.716l15.714-23.62h-44.84 C162.606,38.761,158.674,29.958,152.511,23.119z").attr({fill:'black',stroke:'none'});

答案 1 :(得分:2)

转到Adobe Illustrator绘制您想要的任何符号/路径,导出为SVG,在文本编辑器中打开,将路径复制/粘贴到您的Raphael代码中,使用它