def interpolate_color(c1, c2, factor: float) -> list:
assert(len(c1) == len(c2))<EOL>new_color = []<EOL>for i in range(len(c1)):<EOL><INDENT>new_color.append(int(interpolate(c1[i], c2[i], factor)))<EOL><DEDENT>return new_color<EOL>
Linear interpolate two 3-channel colors, using channel based interpolation.