[tools 1/3] winetest/build-patterns: Take the distance between key colors into account.