title: apply fabric image filter tint
body: <p>I am trying to apply image color using fabric.js tint. I found an <a href="http://fabricjs.com/image-filters/" rel="nofollow">example</a>, which I tried to apply with no luck:</p>
  
  <pre><code>var active = canvas.getActiveObject();
  if (active &amp;&amp; active.type === 'image') {
      var color = $(this).css("background-color");
      var filter = new fabric.Image.filters.Tint({
          color : '#3513B0',
          opacity : 0.5
      });
      active.filters.push(filter);
      active.applyFilters(canvas.renderAll.bind(canvas));
  }
  else{
      active.set('fill',color);   
  }
  </code></pre>
  
  <p>Here's my <a href="http://jsfiddle.net/tmoq0jtf/4/" rel="nofollow">JSFiddle</a>.</p>