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

◆ StripColors()

Color Terraria.Graphics.EmpressBladeDrawer.StripColors ( float progressOnStrip)
inlineprivate

Definition at line 33 of file EmpressBladeDrawer.cs.

34 {
35 Color result = Color.Lerp(ColorStart, ColorEnd, Utils.GetLerpValue(0f, 0.7f, progressOnStrip, clamped: true)) * (1f - Utils.GetLerpValue(0f, 0.98f, progressOnStrip, clamped: true));
36 result.A /= 2;
37 return result;
38 }
static Color Lerp(Color value1, Color value2, float amount)
Definition Color.cs:491

References Terraria.Graphics.EmpressBladeDrawer.ColorEnd, Terraria.Graphics.EmpressBladeDrawer.ColorStart, Terraria.Utils.GetLerpValue(), and Microsoft.Xna.Framework.Color.Lerp().

Referenced by Terraria.Graphics.EmpressBladeDrawer.Draw().