title: How to use Color-Thief.js?
body: <p>I'm a newbie with this (very interesting) script, and I'm trying to find out how to use it.</p>
  
  <p>On its GitHub site, it says: </p>
  
  <pre><code>var colorThief = new ColorThief();
  colorThief.getColor(sourceImage);
  </code></pre>
  
  <p>But what is sourceImage? A link to the image? A jQuery object of the image (like $("img") )? Or what?</p>
  
  <p>It would be nice if someone can create a fiddle so I can see the code in action.</p>
  
  <p>PS: I also tried to look in the source of <a href="http://lokeshdhakar.com/projects/color-thief/" rel="nofollow">its website</a>, but I couldn't figure it out.</p>