asteig
asteig

Reputation: 107

MooTools - Rotating images by degrees

I need to rotate an image by x amount of degrees 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??

Upvotes: 0

Views: 790

Answers (1)

Ryan Berger
Ryan Berger

Reputation: 9732

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.

Upvotes: 1

Related Questions