Support routines for code listings in Brainard/Stockman book on color