Lens
Lens Effect A picture is shown and it looks like a magnifying glass is drawn over the picture. One of the most famous demos that has a lens effect is 2nd reality by future crew. The trick is to precalculate the entire effect. Just make an array that for each pixel in the destination picture tells which pixel to take from the source picture. This array is called the transformation array. The tricky part is to calculate the transformation array to make the destination look like a lens is beeing held over the source picture. We update only the pixels affected by the transformation References: Abe's Demoschool Part 5 by Albert Veli
Source code: Lens
Built with Processing and Processing.js