hyperandroid / CAAT

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

shadowBlur, shadowColor #3

Closed MHOOO closed 11 years ago

MHOOO commented 12 years ago

Hello There, I really like your library and I would like to see it support shadowColor & shadowBlur canvas attributes. My javascript however is mediocre at best and I've got no clue as to where I should add the functionality (and even less how to re-build the build/caat.js). Any advice on that?

hyperandroid commented 12 years ago

I'll add shadowColor and shadowBlur into TextActor. Also Shape/Star actors could benefit from this effect as well. Let me know if you'd like it be added into other image based actors as well.

MHOOO commented 12 years ago

Yes, I think this should be on pretty much every actor. As of now, I have simply one function which wraps the paint method of any actor I specify and sets the values manually.

hyperandroid commented 12 years ago

Hey Thomas,

I added those features, but removed them immediately since they took too many cycles to perform. Since i know it's been improved in chrome, will get back to this in another moment. Will keep the issue open to remind me of it.

-ibon

alelondon commented 12 years ago

may be you could have a config file with different performance settings enabling/disabling these features? (and a console warning if you use them while disabled ;-P )