renamed getcolor to initcolor