hyperandroid / CAAT

Canvas Advanced Animation Toolkit
hyperandroid.github.com/CAAT
MIT License
727 stars 117 forks source link

Is there a way use "mask" ? #5

Closed FlashTang closed 12 years ago

FlashTang commented 12 years ago

Awesome staff .

One question :

Is there a way use "mask" like flash ' s MovieClip.mask in CAAT ?

http://dl.dropbox.com/u/29345465/other/flashmask.swf

Thank you very much

hyperandroid commented 12 years ago

Hi there. I'm sorry to tell there's not such feature (yet). I can think of some ways to this mask effect (only canvas renderer) though. Will give it a solution and write a demo about it.

Thanks for the suggestion. Regards, Ibon

FlashTang commented 12 years ago

That's cool It's a very useful feature One thing if you try to give it a solution : Please let the mask can effect "group" (ActorContainer) ,not just a shape Thanks for typing hyperandroid.

hyperandroid commented 12 years ago

It's been added to CAAT the abbility to have arbitrary shaped masks and apply behaviors on the mask too. Look at the tech demo http://labs.hyperandroid.com/static/CAAT-Samples/demos/demo16/mask.html where you can see how to manage masks.

Regards, -hyper.

FlashTang commented 12 years ago

Exciting news Now CAAT is the only one supports mask I can find on the internet. (actually there is another framework has mask feature , but it's haxe based and not completed) Thank you so much hyperandroid ,you are such a great coder Regards -Tang