private void SetColorLabel(int value, MyLabel label) { int red = 125 + value * 2; int green = 255 - value * 2; red = (red > 255) ? 255 : red; green = (green < 0) ? 0 : green; label.SetFontColor(Color.FromArgb(255, (byte)red, (byte)green, 0)); }