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

◆ StripWidth()

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

Definition at line 32 of file FlameLashDrawer.cs.

33 {
34 float lerpValue = Utils.GetLerpValue(0f, 0.06f + transitToDark * 0.01f, progressOnStrip, clamped: true);
35 lerpValue = 1f - (1f - lerpValue) * (1f - lerpValue);
36 return MathHelper.Lerp(24f + transitToDark * 16f, 8f, Utils.GetLerpValue(0f, 1f, progressOnStrip, clamped: true)) * lerpValue;
37 }
static float Lerp(float value1, float value2, float amount)
Definition MathHelper.cs:53

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

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