@@ -0,0 +1,625 @@
+package net.gtaun.shoebill.common;%0A%0Aimport net.gtaun.shoebill.data.Color;%0A%0Apublic class ColorUtils%0A%7B%0A%09public static Color colorBlend(Color mainColor, Color destColor, int alpha)%0A%09%7B%0A%09%09if (alpha %3C 0) alpha = 0;%0A%09%09else if (alpha %3E 255) alpha = 255;%0A%09%09%0A%09%09int r = mainColor.getR();%0A%09%09int g = mainColor.getG();%0A%09%09int b = mainColor.getB();%0A%09%09int a = mainColor.getA();%0A%0A%09%09r = r + (destColor.getR() - r) * alpha / 255;%0A%09%09g = g + (destColor.getG() - g) * alpha / 255;%0A%09%09b = b + (destColor.getB() - b) * alpha / 255;%0A%09%09a = a + (destColor.getA() - a) * alpha / 255;%0A%09%09%0A%09%09return new Color(r, g, b, a);%0A%09%7D%0A%09%0A%09private ColorUtils()%0A%09%7B%0A%0A%09%7D%0A%7D%0A

Add ColorUtils.