public static Color colorWithAlpha(final Color color, int alpha)
	{
		if (color.getAlpha() == alpha)
		{
			return color;
		}

		alpha = constrainValue(alpha);
		return new Color((color.getRGB() & 0x00ffffff) | (alpha << 24), true);
	}
@Test
	public void colorWithAlpha()
	{
		int[] alpha = {73};

		COLOR_HEXSTRING_MAP.forEach((color, hex) ->
		{
			assertEquals(new Color(color.getRed(), color.getGreen(), color.getBlue(), alpha[0]),
				ColorUtil.colorWithAlpha(color, alpha[0]));
			alpha[0] += 73;
			alpha[0] %= 255;
		});

		COLOR_ALPHA_HEXSTRING_MAP.forEach((color, hex) ->
		{
			assertEquals(new Color(color.getRed(), color.getGreen(), color.getBlue(), alpha[0]),
				ColorUtil.colorWithAlpha(color, alpha[0]));
			alpha[0] += 73;
			alpha[0] %= 255;
		});

		COLOR_HEXSTRING_MAP.keySet().forEach((color) ->
		{
			assertEquals(color, ColorUtil.colorWithAlpha(color, 255));
		});
	}