Cleanup of c00ac08514c93edc88e556d40ac75a54eb40e271

This commit is contained in:
feildmaster 2013-12-09 16:25:03 -06:00
parent 5de230faaa
commit 388d83787a

View file

@ -12,7 +12,6 @@ import java.awt.image.BufferedImage;
* colors of varying shades with values entry to entry + 3.
*/
public final class MapPalette {
// Internal mechanisms
private MapPalette() {}
@ -209,7 +208,7 @@ public final class MapPalette {
int index = 0;
double best = -1;
for (int i = 0; i < colors.length; i++) {
for (int i = 4; i < colors.length; i++) {
double distance = getDistance(color, colors[i]);
if (distance < best || best == -1) {
best = distance;
@ -237,5 +236,4 @@ public final class MapPalette {
return colors[index >= 0 ? index : index + 256];
}
}
}