Jump to content

Can't clear mask in canvas


vcyborg
 Share

Recommended Posts

Hi!

I'm using a drawn rectangle as a mask and I need to delete it after a tween, so I'm using onComplete and then in the callback function 'this.mask.clear()'. Seems to work fine in WebGL, but testing in some browsers using canvas it seems the mask is still there after the animation (other stuff in the function is working, just clear() not working on the mask).

Is there any workaround for this? Or any other way to get rid of a mask?

Any help is appreciated, thank you.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...