How would one go about gradually fading a sprite from one color to another?
1 Answer
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.