How would one go about gradually fading a sprite from one color to another?
Use Color.Lerp to interpolate between two colours. See the MSDN documentation. Pass this as the color to SpriteBatch.Draw.
The arguments to Color.Lerp are the two colours you want to fade between, and a fade amount between 0 and 1.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
4 years ago