title: How can I find the center of a canvas in js
body: <p>I have <code>canvas</code>. I have a <code>ctx</code>. I want the <code>ctx</code> to draw in the <strong>center</strong> of the <code>canvas</code>, however </p>
  
  <pre><code>canvas.height/2
  canvas.width/2
  </code></pre>
  
  <p>does not work</p>
  
  <p><a href="http://jsfiddle.net/3hnbarcg/3/" rel="nofollow noreferrer">http://jsfiddle.net/3hnbarcg/3/</a></p>
  
  <p>Also, I need proof It works before I can accept</p>