javascript - Why can't I draw Image? (fabric.js) -



javascript - Why can't I draw Image? (fabric.js) -

i'm next fabric.js tutorials can't draw image. can draw rectangle, can't draw image. why code doesn't work???

script here:

var canvas = new fabric.canvas('c'); fabric.image.fromurl('pug.jpg', function(img) { img.filters.push(new fabric.image.filters.grayscale()); img.applyfilters(canvas.renderall.bind(canvas)); canvas.add(img); });

javascript html fabricjs

Comments

Popular posts from this blog

php - How to pass multiple values from url -

php - Laravel not returning controller -

c# - Confused on how to specify a Platform and Version while using ChromeOptions for RemoteWebDriver with Selenium donNet since recent updates -