Doc Dingle's Website
Brent M. Dingle, Ph.D.

Simple Image Rotation - Example

HTML5 and JavaScript are used to display an image/sprite on the screen. The sprite should rotate to always point towards the cursor's location.

Your browser does not support the HTML5 canvas tag.

Here is the zipped 'source code'

See also this article, by Seb Lee-Delisle.