Image Rotate with CANVAS | JavaScriptSource

Image Rotate with CANVAS

Benoit Asselin Jul 11, 2008


CANVAS is a new HTML element which can be used to draw graphics using JavaScript. This script will rotate an image a varying amount of degrees: 90, 180, -90, and back to 0. Can be used in many different ways.



Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: imgRotateCanvas.js


Paste this code into the HEAD section of your HTML document.


Paste this code into the BODY section of your HTML document

Leave a Response


Search a long time for a thing like that.[br /]Thanks a lot!

markus Oct 5, 2008

That's very Good.

Dongmook Yi Jul 13, 2008

that's just cool!

Evgeniy Jul 10, 2008