Skip to main content
New Participant
February 19, 2020
Answered

how to do make a working gradient mask in html5 canvas?

  • February 19, 2020
  • 1 reply
  • 1830 views

how to do make a working gradient mask in html5 canvas?

This topic has been closed for replies.
Correct answer JoãoCésar17023019

Hi.

 

You're gonna need to use an AlphaMaskFilter:

https://www.createjs.com/docs/easeljs/classes/AlphaMaskFilter.html

 

Please see this answer so you can learn how to apply this filter in Animate CC:

https://community.adobe.com/t5/animate/how-to-write-a-mask-code-in-easeljs/td-p/9995444

 

 

Regards,

JC

1 reply

JoãoCésar17023019
JoãoCésar17023019Correct answer
Community Expert
February 19, 2020

Hi.

 

You're gonna need to use an AlphaMaskFilter:

https://www.createjs.com/docs/easeljs/classes/AlphaMaskFilter.html

 

Please see this answer so you can learn how to apply this filter in Animate CC:

https://community.adobe.com/t5/animate/how-to-write-a-mask-code-in-easeljs/td-p/9995444

 

 

Regards,

JC

YRngnKAuthor
New Participant
February 20, 2020

awesome, thanks!