color.h: document and modernize header