title: Graphics beginBitmapFill easeljs
body: <p>I want to show shapes like this example: <a href="http://www.createjs.com/#!/EaselJS/demos/game" rel="nofollow noreferrer">http://www.createjs.com/#!/EaselJS/demos/game</a></p>
  
  <p>I want to load the shapes filled with in image.
  This is what I do:</p>
  
  <pre><code>var img = "&lt;img src='http://nielsvroman.be/twitter/root/easeljs/image.png'&gt;";
  
  //setup
  this.graphics.clear();
  this.graphics.beginStroke("#FFFFFF");
  this.graphics.beginBitmapFill(img); 
  this.graphics.moveTo(0, size);
  </code></pre>
  
  <p>But I continuously get this error:</p>
  
  <blockquote>
    <p>Uncaught TypeError: Type error</p>
  </blockquote>
  
  <p>This error is created in Graphic.js :
  <img src="https://i.stack.imgur.com/oogmG.png" alt="enter image description here"></p>
  
  <p>The document: <a href="http://nielsvroman.be/twitter/root/game.html" rel="nofollow noreferrer">http://nielsvroman.be/twitter/root/game.html</a></p>