Functional Geometry on Canvas
Michael Grady has written a paper covering similar ground in the Journal of Computing Sciences in College; the paper is available on the ACM Digital Library as a free download (after registration).Grady uses the canvas
drawImage function, while this example draws the paths from scratch (as in Buss's example).
For an example of usage, see
fishes.html, which draws a version of M.C. Escher's Square Limit.