def mixColor( originalColor, overColor):
	"""
	Use overColor's alpha to overlay it on top of original Color
	Color parameters in form [r, g, b, a]
	Returns [r, g, b, 1]
	"""
	alpha = overColor[3]
	if alpha == 1:
		return overColor[:4]
	else:
		out = [0, 0, 0, 1]
		for i in range(3):
			out[i] = originalColor[i] * (1 - alpha) + overColor[i] * alpha
		return out