Get vertices from sprite for dynamic shadows

I've made a Smash Bro's type game in processing called Beard Battles for a Uni project/for fun. It currently consists of two players with big ginger beards in different outfits(coming soon)! The sprites are fairly simple, about 20x30pixels, (although I was considering doubling this).

http://www.openprocessing.org/sketch/29467

The above processing sketch takes vertices of an object and then creates shadows depending where the light source is. Is there a way I can convert my pixel .png sprite files into a set of Vector Points that would integrate with this code?

Thanks for taking the time to read this!

Sign In or Register to comment.