Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DrawWhite()

static void Terraria.GameContent.Events.MoonlordDeathDrama.DrawWhite ( SpriteBatch spriteBatch)
inlinestatic

Definition at line 232 of file MoonlordDeathDrama.cs.

233 {
234 if (whitening != 0f)
235 {
236 Color color = Color.White * whitening;
237 spriteBatch.Draw(TextureAssets.MagicPixel.Value, new Rectangle(-2, -2, Main.screenWidth + 4, Main.screenHeight + 4), new Rectangle(0, 0, 1, 1), color);
238 }
239 }
void Draw(Texture2D texture, Vector2 position, Color color)

References Microsoft.Xna.Framework.Graphics.SpriteBatch.Draw(), Terraria.GameContent.TextureAssets.MagicPixel, Terraria.Main.screenHeight, Terraria.Main.screenWidth, and Terraria.GameContent.Events.MoonlordDeathDrama.whitening.

Referenced by Terraria.Main.DoDraw().