This document handles raw SVGs (no Raphael wrappers), as well as using callbacks in (novel to me) ways to randomize the underlying color map. You can specify how MANY functions a color channel can use to calculate itself, but the actual functions are randomized besides that. You can also choose the order in which the pixels are rendered.
Spiral Animation Test Canvas Version