Don't set color and return the index instead. This allows also using it for background. Sprinkle a couple of '-nr --' for 'print' calls. Add the fnv1 variant.