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

◆ StripWidth()

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

Definition at line 31 of file RainbowRodDrawer.cs.

32 {
33 float num = 1f;
34 float lerpValue = Utils.GetLerpValue(0f, 0.2f, progressOnStrip, clamped: true);
35 num *= 1f - (1f - lerpValue) * (1f - lerpValue);
36 return MathHelper.Lerp(0f, 32f, num);
37 }
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.RainbowRodDrawer.Draw().