Picture Shuffle
Original demo by Vincent Hardy, published September 18, 2010.
Open Picture Shuffle in the gallery
Picture Shuffle turns an image into a loose collage of instant photos. Three small stacks wait at the bottom of the panel. Click one and its tiles fly out to assemble a full picture, each slightly tilted and out of line, as if placed by hand. Click again and they fold back.
The first version of the idea used SVG patterns, but too many patterns slowed browsers down. The final approach cuts the picture up on a canvas instead. For each tile the script takes a rotated snapshot, adds a white border and a shadow, and stores the result as a data URL on an SVG image element. SVG then only has to move ordinary images. Small random errors in position and rotation keep the collage from looking mechanical.
The tile, layout and animation code in this restoration is the original. The three family photographs could not be reused, so they were replaced by a harbor, a range of hills and a fruit market, all drawn procedurally for this version.
Each stack can now be reached with the keyboard, and keys 1, 2 and 3 toggle them. The panel also scales down to fit a phone screen.
This note was newly written for the reconstruction. Read the original post in the Internet Archive.