How is this done?

Hi! I need to do a thing like this:

But I can’t figure out how. I think I could build some array that describe the geometry of each state for each piece of the mask, then use the Tween class to change them interactively, but I’d like to do it in a more simple way…

Any idea?

Thank you!