AS3 Edge Detection Demo
November 11th, 2009
So after posting about a technique to detect edges in AS3, I decided to take a little bit of time today to actually play with it. Check out the vid:
The demo used BitmapData along with the “difference” blendmode to extract the edges from the webcam feed. Using BitmapData’s hitTest method, I was able to check whether my sprite is hitting an edge. This was a pretty quick and simple demo (1hr and 147 lines of code! Woot!), so that I could actually see this thing in action. “Line Rider” anyone?