def blend_colors(colors1, colors2, factor=0.5):
	result = []

	for index, c1 in enumerate(colors1):
		c2 = colors2[index]

		result.append((
			c2[0] * factor + c1[0] * (1 - factor),
			c2[1] * factor + c1[1] * (1 - factor),
			c2[2] * factor + c1[2] * (1 - factor),
		))

	return result
Blend the two given lists of colors, with 'factor' controlling
dataset/ETHPy150Open freedoom/freedoom/lumps/colormap/colormap.py/blend_colors