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

◆ LerpVertexColorsWithColor()

void Terraria.GameContent.Drawing.WallDrawing.LerpVertexColorsWithColor ( ref VertexColors colors,
Color lerpColor,
float percent )
inline

Definition at line 19 of file WallDrawing.cs.

20 {
21 colors.TopLeftColor = Color.Lerp(colors.TopLeftColor, lerpColor, percent);
22 colors.TopRightColor = Color.Lerp(colors.TopRightColor, lerpColor, percent);
23 colors.BottomLeftColor = Color.Lerp(colors.BottomLeftColor, lerpColor, percent);
24 colors.BottomRightColor = Color.Lerp(colors.BottomRightColor, lerpColor, percent);
25 }
static Color Lerp(Color value1, Color value2, float amount)
Definition Color.cs:491

References Microsoft.Xna.Framework.Color.Lerp().

Referenced by Terraria.GameContent.Drawing.WallDrawing.DrawWalls().