Micro-optimize color_of()