0

I'm working with fabricjs and am trying to create something like Paint, so I can open an image and edit it.

I would like to be able to select an area on this img, and delete it (-> fill it with white color), how can I have a visible selected area, get its coordinates, and fill it with white?

Wai Ha Lee
  • 8,173
  • 68
  • 59
  • 86
Lempkin
  • 1,338
  • 2
  • 23
  • 46
  • See http://stackoverflow.com/questions/19311038/fabric-js-eraser-issue-canvas. You could approximate by creating a rect with the same color as the background over the area you want to hide. – Ben Jan 13 '17 at 01:11
  • Yes thx i think i'll do that =) – Lempkin Jan 13 '17 at 09:53

0 Answers0