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

◆ paintColor()

static Color Terraria.WorldGen.paintColor ( int color)
inlinestatic

Definition at line 35073 of file WorldGen.cs.

35074 {
35076 if (color == 1 || color == 13)
35077 {
35078 white.R = byte.MaxValue;
35079 white.G = 0;
35080 white.B = 0;
35081 }
35082 if (color == 2 || color == 14)
35083 {
35084 white.R = byte.MaxValue;
35085 white.G = 127;
35086 white.B = 0;
35087 }
35088 if (color == 3 || color == 15)
35089 {
35090 white.R = byte.MaxValue;
35091 white.G = byte.MaxValue;
35092 white.B = 0;
35093 }
35094 if (color == 4 || color == 16)
35095 {
35096 white.R = 127;
35097 white.G = byte.MaxValue;
35098 white.B = 0;
35099 }
35100 if (color == 5 || color == 17)
35101 {
35102 white.R = 0;
35103 white.G = byte.MaxValue;
35104 white.B = 0;
35105 }
35106 if (color == 6 || color == 18)
35107 {
35108 white.R = 0;
35109 white.G = byte.MaxValue;
35110 white.B = 127;
35111 }
35112 if (color == 7 || color == 19)
35113 {
35114 white.R = 0;
35115 white.G = byte.MaxValue;
35116 white.B = byte.MaxValue;
35117 }
35118 if (color == 8 || color == 20)
35119 {
35120 white.R = 0;
35121 white.G = 127;
35122 white.B = byte.MaxValue;
35123 }
35124 if (color == 9 || color == 21)
35125 {
35126 white.R = 0;
35127 white.G = 0;
35128 white.B = byte.MaxValue;
35129 }
35130 if (color == 10 || color == 22)
35131 {
35132 white.R = 127;
35133 white.G = 0;
35134 white.B = byte.MaxValue;
35135 }
35136 if (color == 11 || color == 23)
35137 {
35138 white.R = byte.MaxValue;
35139 white.G = 0;
35140 white.B = byte.MaxValue;
35141 }
35142 if (color == 12 || color == 24)
35143 {
35144 white.R = byte.MaxValue;
35145 white.G = 0;
35146 white.B = 127;
35147 }
35148 if (color == 25)
35149 {
35150 white.R = 75;
35151 white.G = 75;
35152 white.B = 75;
35153 }
35154 if (color == 26)
35155 {
35156 white.R = byte.MaxValue;
35157 white.G = byte.MaxValue;
35158 white.B = byte.MaxValue;
35159 }
35160 if (color == 27)
35161 {
35162 white.R = 175;
35163 white.G = 175;
35164 white.B = 175;
35165 }
35166 if (color == 28)
35167 {
35168 white.R = byte.MaxValue;
35169 white.G = 178;
35170 white.B = 125;
35171 }
35172 if (color == 29)
35173 {
35174 white.R = 25;
35175 white.G = 25;
35176 white.B = 25;
35177 }
35178 if (color == 30)
35179 {
35180 white.R = 200;
35181 white.G = 200;
35182 white.B = 200;
35183 white.A = 150;
35184 }
35185 return white;
35186 }

References Microsoft.Xna.Framework.Color.White.

Referenced by Terraria.Graphics.Light.TileLightScanner.ApplyTileLight(), Terraria.GameContent.Drawing.TileDrawing.DrawTrees(), Terraria.Map.MapHelper.MapColor(), and Terraria.Main.TryApplyingPlayerStringColor().