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

◆ StripWidth()

float Terraria.Graphics.MagicMissileDrawer.StripWidth ( float progressOnStrip)
inlineprivate

Definition at line 30 of file MagicMissileDrawer.cs.

31 {
32 return MathHelper.Lerp(26f, 32f, Utils.GetLerpValue(0f, 0.2f, progressOnStrip, clamped: true)) * Utils.GetLerpValue(0f, 0.07f, progressOnStrip, clamped: true);
33 }
static float Lerp(float value1, float value2, float amount)
Definition MathHelper.cs:53

References Terraria.Utils.GetLerpValue(), and Microsoft.Xna.Framework.MathHelper.Lerp().

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