简体   繁体   中英

HTML5 Canvas Text Resize, Rotate and Change Color

I am trying to resize and Rotate text in canvas in a similar way to this:

http://simonsarris.com/project/canvasdemo/demo2.html

But I also want to add the rotate and change color functionality.
How would I best implement this functionality?

If you really want to use all these feature then I would suggest you using either of these javascript libraries to accomplish this

I've worked with all of them. As always, nothing will probably fit your needs but I would suggest looking into those to get a better view on what you can actually do with the HTML5 canvas.

Start with a good tutorial about Canvas I would say. Something like https://developer.mozilla.org/en/docs/Canvas_tutorial is a good resource.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM