public static Color avgColor(HashSet<Color> colors) {
		long red=0, green=0, blue=0;
		for (Iterator<Color> iterator = colors.iterator(); iterator.hasNext();) {
			Color color = (Color) iterator.next();
			red += color.getRed();
			green += color.getGreen();
			blue += color.getBlue();
		}
		return new Color(
			(int)(red/colors.size()),
			(int)(green/colors.size()),
			(int)(blue/colors.size())
		);
	}