public static string Get_Color(int Position) { Position = Position - 1; Console.WriteLine(Position); if (Position > -1 && Position < Colors_List.Count) { return("#" + ColorConvertor.ColorToHexString(Colors_List[Position])); } else { return("#FFFFFF"); } }
public static void Initialize(string startColor, string endColor) { GetGradientColors(ColorConvertor.GetColorFromHex(startColor), ColorConvertor.GetColorFromHex(endColor)); }