Skip to main content
Known Participant
December 1, 2021
Question

Assigning a draggable mask

  • December 1, 2021
  • 1 reply
  • 146 views

In canvas is it possible to drag a mask around the stage? I'm wanting to drag a magnifying glass to reveal parts of the background image.

 

Dragging the object is no problem, its when I add a "AlphaMaskFilter" I can no longer drag the object.

 

Any ideas or code would be of great help!

 

This topic has been closed for replies.

1 reply

JoãoCésar17023019
Community Expert
Community Expert
December 1, 2021

Hi.

 

Here is a sample that might be what you want:

https://github.com/joao-cesar/adobe/tree/master/animate%20cc/html5_canvas/scratch

 

Please let us know.

 

Regards,

JC