function mix(x, y, a) return x * (1 - a) + y * a end