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,598
  • 83
  • 57
  • 92
Lempkin
  • 1,458
  • 2
  • 26
  • 49
  • 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