title: Canvas text not showing? - JavaScript
body: <p>I am using the <code>ctx.fillText</code> function to draw text onto my screen and it doesn't seem to be appearing.</p>
  <pre><code>overlay(&quot;rgb(50, 50, 200)&quot;, &quot;This is the beginning screen&quot;, 48, &quot;black&quot;, &quot;center&quot;, centerx, centery)
  
  var overlay = function(colour, text, font, size, fontColour, oreintation, x, y){
      ctx.font = size + &quot;px &quot; + font + &quot; &quot; + fontColour
      ctx.textAlign = oreintation
      ctx.fillStyle = colour
      ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height)
      ctx.fillText(text, x, y)
  }
  </code></pre>