Mask with bitmap

Mask with bitmap, How can i do that?

obj.effect(new AlphaEffect(new Pic(url)))

Some examples and more info here DOCS - ZIM JavaScript Canvas Framework - Documentation

1 Like

What mask were you using? I am trying to do an "erase" mask by having two pictures one on top of the other and erase the top one to reveal the bottom one?

Check out

And

It does not have two pictures but just put a second picture at the .bot()

1 Like

Thanks. I have this working however I would like to "erase" a picture/container, instead of the "black stage", and reveal the bottom picture. Also, can the mask be a shape instead of the stage? I did these in flash back in the day.
I will try with this new code of yours. Thanks,

Yes - the background can be anything. Try it out and if you need a hand, let us know.