Twirl
Original demo by Erik Dahlström, published October 4, 2009.
Twirl used a single unusual image to make a picture look as if it were being stirred. The image was a displacement map that began as a smooth identity gradient, with red rising left to right and green rising top to bottom, and was then processed in a graphics editor. Rotating that map under feDisplacementMap made the distortion turn slowly across the photo.
For this restoration the map was regenerated by the same idea in code: an identity gradient pushed through a set of vortices. The photo became a new drawing of two flowers against a cloudy sky.
The largest change is in how the map rotates. The original animated an element referenced from feImage, which Firefox does not render. Now the filter sits on a group that rotates, and the picture inside rotates the opposite way, so the image stays put while the distortion turns. The clip became a clipPath, and the mirrored reflection still comes from a use element.
The old video URL now holds a real Theora recording of this restored demo. Current browsers have dropped Theora, so that file needs a media player, while the live SVG runs in Chromium, Firefox and WebKit.
This note was newly written for the reconstruction. Read the original post in the Internet Archive.
Topics: Filters, Interactive