Color newColor = new Color(255, 0, 0, 255); // Creates a new red color with alpha 255
Color existingColor = Color.Blue; existingColor.A = 128; // Changes the alpha value of the existing color to 128
spriteBatch.Begin(); spriteBatch.Draw(texture, new Vector2(100, 100), Color.White); // Draws a texture at (100, 100) with a white color spriteBatch.End();The package library for Microsoft.Xna.Framework Color is Microsoft.Xna.Framework.Graphics.