Exploring BitmapData and webcams

I’m reading A33 – AdvancED ActionScript 3.0 Animation – and having fun making a mess with BitmapData and webcams.

view source

The inspiration for the above code comes from the chapter on Alternate Input: The Camera and Microphone – page 215. The code is pretty much a mess. I’m just playing.

You can see some interesting effects depending on the order that you switch modes. For instance, if you switch from Difference - the default – to alpha then there will be a permanent imprint of what was visible when you switched under the changes to the screen. So you can switch and then move your hand in front of your face and you’ll be able to see an outline of your face behind your hand. It gets even more interesting if you go from Lighten to alpha.

Let me know if you find some interesting mode combinations to try out?

Anyone else think that Difference looks a little like the Agent Smith effect in Matrix Revolutions or is it just me? :)