First of all, let me quickly explain why I brought this up despite similar question here: Canvas rotate from bottom center image angle?
All the information I have seen so far is concerned with javascript embedded in html markup. I do not know whether this information would suffice for someone more experienced than I, but I know very little javascript and html. I do have a little experience in a lot of scripting languages however.
My problem is that I have a .js file that takes an object, i, and sets i.image to a png image from a url (say example.com/pic.png). I want to add a few lines of code that first rotates the image by x degrees or radians (I do not care which, I can always convert) first, then sets it to i.image. So: image="example.com/pic.png"; i.image=MagicRotateFunction(image,45);
I just have no idea what MagicRotateFunction would be.