title: Rotate an image on HTML5 canvas
body: <p>I want to rotate an image on HTML5 canvas like this: <a href="http://webutils.co.uk/code/awc-image-rotater" rel="nofollow">http://webutils.co.uk/code/awc-image-rotater</a></p>
  
  <p>Does anyone have an idea how I can do this?</p>
  
  <p>I have been trying like this:</p>
  
  <pre><code>ctx3.drawImage(img3, -235, -142, 128, 128);  
  ctx3.translate(151, 142);
  ctx3.rotate(90 * Math.PI / 180);
  </code></pre>
  
  <p>But really not fulfilling my requirement. Any help will deeply appreciated.</p>