Uses three levels of detail while rendering the comic print, it has many early-outs but still isn't very fast due to the loops and conditionals, which AFAIK can't be bypassed without integer arithmetic. Here's a video of it in action, and you can download the RFX (RenderMonkey shader) file here.