text: public void SetColor(short byteIndex, byte red, byte green, byte blue){int i = byteIndex - FIRST_COLOR_INDEX;if (i < 0 || i >= STANDARD_PALETTE_SIZE){return;}while (field_2_colors.Count <= i){field_2_colors.Add(new PColor((byte)0, (byte)0, (byte)0));}PColor custColor = new PColor(red, green, blue);field_2_colors[i] = custColor;}