Divide the plane into n regions such that each region contains approximately a fraction 1/n of the blue points and 1/n of the red points.
It equals 0 if each region has exactly a fraction 1/n of the points of each color.