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 -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -