예제 #1
0
        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");
            }
        }
예제 #2
0
 public static void Initialize(string startColor, string endColor)
 {
     GetGradientColors(ColorConvertor.GetColorFromHex(startColor),
                       ColorConvertor.GetColorFromHex(endColor));
 }