Skip to main content
GameDev.net gamedev.net
🔒 Locked

rotating images in javascript

Started by MrPoopypants Jul 23, 2003 at 12:19 AM 0 replies 450+ views
Original Post
MrPoopypants
MrPoopypants
imagine for a second that i want to rotate an image, barrel.gif, to an angle so defined by the user or other functions in the script.
function rotateBarrel(){
     barrel.style.?whatwouldgohere? = angle.value; 
}
 
is it as simple as a style value or does this require more drastic action? Any help would be greatly appreciated, thanks.
(0110101101000110)The Murphy Philosophy: Smile . . . tomorrow will be worse.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.