• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Assigning a draggable mask

Explorer ,
Nov 30, 2021 Nov 30, 2021

Copy link to clipboard

Copied

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!

 

TOPICS
Other

Views

76

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 01, 2021 Dec 01, 2021

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines