title: HTML5 Javascript rotation
body: <p>I’m new to JavaScript (and programming) and am struggling with how to add rotation in a HTML5 Canvas. I’m basically trying to get a JavaScript object to rotate around another object. In my case I need to get a planet to orbit around the sun. </p>
  
  <p>I currently have the planets declared within the draw function and they display fine. I just need help on how to add rotation. </p>
  
  <p>Thanks for your time. </p>