This commit is contained in:
parent
6cedb984fe
commit
248f925b99
@ -77,7 +77,7 @@ public final class SkinColor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static Color averageColor(Color color1, Color color2) {
|
private static Color averageColor(Color color1, Color color2) {
|
||||||
int sumRed = color1.getRed() + color2.getRed();
|
long sumRed = color1.getRed() + color2.getRed();
|
||||||
long sumGreen = color1.getGreen() + color2.getGreen();
|
long sumGreen = color1.getGreen() + color2.getGreen();
|
||||||
long sumBlue = color1.getBlue() + color2.getBlue();
|
long sumBlue = color1.getBlue() + color2.getBlue();
|
||||||
return new Color(sumRed / 2, sumGreen / 2, sumBlue / 2);
|
return new Color(sumRed / 2, sumGreen / 2, sumBlue / 2);
|
||||||
|
Reference in New Issue
Block a user