[EDIT] This started life as a plugin but the implementation is being moved to blender as a new texture. [/EDIT]
I was going through some of the texture plugins and had a different idea of computing the intensity and bump map. Moreover I wanted to produce a set of bricks of random width that was repeatable and could be offset arbitrarily to produce different patterns.
Screenshots (artifacts due to JPEG compression):
There are 3 modes: Linear, Quadratic and Cubic. These basically control the fall-off of the brick intensity function from the brick face to the mortar.
My next idea is to introduce some sort of noise function to perturb the texture.
[EDIT2]: I borrowed a mod() function from the brick.c in the Blender Plugin Repository and its Public Domain. Didn't want to write it myself
Download: Win32 version compiled with mingw + Linux version compiled with bmake + Mac version.
Beta Version: Win32 version compiled with mingw.
Please read the README.TXT file. It has a note about bump mapping.
The Mac version was supplied by sarah and it may or may not work on all Macintosh systems.