If you’re impatient with the preamble and want to see it work, scan forward to about 0:39. [via Hack a Day]