library to warp text on HTML5 canvas similar to csswarp on DOM

落爺英雄遲暮 提交于 2019-12-24 03:23:36

问题


I want to warp text on HTML Canvas around Bezeir curves and Circles. CSSWarp library does that using CSS3 on DOM. I am looking for a library which does the same on HTML canvas. I googled in vain. Did anyone come across such a library? Or was anyone able to successfully warp text on HTML5 canvas around bezeir curves/circles?


回答1:


I don't really know if something similar has been done in HTML5, but there are a tons of experiments done in Flash. Yous should check this blog: http://algorithmist.wordpress.com/. It's completely dedicated to bazier spline exploration. Another great resource is this site: http://www.tinaja.com/cubic01.shtml with tons of examples and great articles related to the subject. Here is paper which explain the concept behind wrapping text to a bazier spline: http://www.tinaja.com/glib/nonlingr.pdf

And as a side note i can nominate two great and complex library which does the desired effect only on SVG: 3d and PaperJS.



来源:https://stackoverflow.com/questions/12311928/library-to-warp-text-on-html5-canvas-similar-to-csswarp-on-dom

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!