impr: faster color computation