开发者

MooTools - Rotating images by degrees

开发者 https://www.devze.com 2023-03-15 23:39 出处:网络
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 w

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号