class ColorUtilities {

    public static Color blendColors(Color color1, Color color2)
    {
        if (color1.getAlpha() < COLOR_COMPONENT_MAX_VALUE)
        {
            float alpha = (float)color1.getAlpha() / COLOR_COMPONENT_MAX_VALUE;
            return new Color((color1.getRed() * alpha + color2.getRed() * (1f - alpha)) / COLOR_COMPONENT_MAX_VALUE,
                    (color1.getGreen() * alpha + color2.getGreen() * (1f - alpha)) / COLOR_COMPONENT_MAX_VALUE,
                    (color1.getBlue() * alpha + color2.getBlue() * (1f - alpha)) / COLOR_COMPONENT_MAX_VALUE);
        }
        return color1;
    }

    private  ColorUtilities();

}