I need to rotate an image by x amount of deg开发者_运维知识库rees using MooTools. I Googled for quite a bit and found a lot of attempts, but all the examples and demos were broken. The closest I got was a Homer Simpson demo, but it repetedly throws the error "getMatrix is not defined".
My entire script is finished, I just need a way to rotate an element. Any ideas??
Here's a tutorial for rotating images: http://www.ajaxblender.com/howto-rotate-image-using-javascript-canvas.html.
It doesn't use mootools, as it is pure JavaScript. The code itself is compact enough that you probably wouldn't save too many lines using mootools anyhow.
精彩评论