Most of us have seen tuto­ri­als on how to use Adobe Pho­to­shop to cre­ate a tilt-shift effect by using a selec­tion mask and a lens blur. I thought I’d try to repro­duce the effect using AS3.
First off, a demo (Open in a New Window) for the peo­ple 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 con­trols the size of the focus area, the sec­ond slider con­trols the loca­tion of the focus area, and the check­box con­trols whether or not to boost the sat­u­ra­tion (because really bright col­ors look more fake).
Now that you’ve played with it, I’ll begin explain­ing what’s going on in the code.
Read the rest of this entry »

Tags: , , , , , , ,