I am making an HTML5 canvas game, and I wish to rotate one of the images.
var link = new Image(); link.src=\'img/link.png\'; link.onload=function(){ ctx.
I ended up having to do:
ctx.save(); ctx.translate(x,y); ctx.rotate(-this.angle + Math.PI/2.0); ctx.translate(-x, -y); ctx.drawImage(this.daggerImage,x,y,20,20); ctx.restore();