added the alpha handling of colors.