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

◆ UpdateFadeEffect()

void ReLogic.Peripherals.RGB.RgbKey.UpdateFadeEffect ( )
inlineprivate

Definition at line 130 of file RgbKey.cs.

131 {
132 //IL_0029: Unknown result type (might be due to invalid IL or missing references)
133 //IL_002f: Unknown result type (might be due to invalid IL or missing references)
134 //IL_0035: Unknown result type (might be due to invalid IL or missing references)
135 float amount = 0f;
136 if (_totalTime > 0f)
137 {
138 amount = 1f - _timeRemaining / _totalTime;
139 }
141 }
static Color Lerp(Color value1, Color value2, float amount)
Definition Color.cs:491

References ReLogic.Peripherals.RGB.RgbKey._timeRemaining, ReLogic.Peripherals.RGB.RgbKey._totalTime, ReLogic.Peripherals.RGB.RgbKey.BaseColor, ReLogic.Peripherals.RGB.RgbKey.CurrentColor, Microsoft.Xna.Framework.Color.Lerp(), and ReLogic.Peripherals.RGB.RgbKey.TargetColor.

Referenced by ReLogic.Peripherals.RGB.RgbKey.Update().