Skip to content
Advertisement

Tag: fabricjs

Fabric.js create dynamic image mask

I want to mask the original image using alpha mask image. I can do alpha masking on image with the following code. But I want to be able to edit the mask with the brush, how can I do that? In theory if I paint the mask white it should be opaque, if I paint it black it should be

Advertisement