I got the idea to do this from XKCD.

Result: