I just discovered the canvas tag. <canvas> is a HTML element used for embedding vector graphics within your web pages. It was first introduced by Apple for Dashboard Widgets, and was later implemented in Safari.
It is now supported by most major browsers, except Internet Explorer. Fortunately, Google has a compatibility layer called ExplorerCanvas that brings the canvas tag to IE.
To learn more about <canvas>, Mozilla has a very good tutorial.
Here's the source code. Warning: No fancy algorithms within.