I want to simulate a Snake escaping from a leg unrolling with a mask, but I don't know how to archieve that effect, the explanation is better with an image what happens and what I do.
Heres another sample of other failed solution I tried.
also, don't forget to render frame previous... in some cases of masking the canvas doesn't correctly represent the rendered output (though it should on a simple set up like this)