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

◆ buffColor()

static Color Terraria.Main.buffColor ( Color newColor,
float R,
float G,
float B,
float A )
inlinestatic

Definition at line 48930 of file Main.cs.

48931 {
48932 //IL_0049: Unknown result type (might be due to invalid IL or missing references)
48933 ((Color)(ref newColor)).R = (byte)((float)(int)((Color)(ref newColor)).R * R);
48934 ((Color)(ref newColor)).G = (byte)((float)(int)((Color)(ref newColor)).G * G);
48935 ((Color)(ref newColor)).B = (byte)((float)(int)((Color)(ref newColor)).B * B);
48936 ((Color)(ref newColor)).A = (byte)((float)(int)((Color)(ref newColor)).A * A);
48937 return newColor;
48938 }

References Terraria.Graphics.Light.Color.

Referenced by Terraria.DataStructures.PlayerDrawSet.BoringSetup_2(), Terraria.Main.DrawNPCDirect_Inner(), Terraria.Main.DrawSmartCursor(), and Terraria.Main.DrawSmartInteract().

+ Here is the caller graph for this function: