Most of us have seen tutorials on how to use Adobe Photoshop to create a tilt-shift effect by using a selection mask and a lens blur. I thought I’d try to reproduce the effect using AS3.
First off, a demo (
) for the people who want to see if this is even worth the time to read.
View source is enabled, if you want the code. The top slider controls the size of the focus area, the second slider controls the location of the focus area, and the checkbox controls whether or not to boost the saturation (because really bright colors look more fake).
Now that you’ve played with it, I’ll begin explaining what’s going on in the code.
Read the rest of this entry »