public FireBallAnimation(Coord pt1, Coord pt2, Color color, string symbol = "*")
        {
            var line = new Line(pt1, pt2);

            var fB = new FrameBuilder();
            foreach (Coord pt in line)
            {
                fB.Clear();
                fB.AddFrameItem(symbol, color, pt);
                AddFrame(fB.Build());
            }
        }
        public FireBallAnimation(Coord pt1, Coord pt2, Color color, string symbol = "*")
        {
            var line = new Line(pt1, pt2);

            var fB = new FrameBuilder();

            foreach (Coord pt in line)
            {
                fB.Clear();
                fB.AddFrameItem(symbol, color, pt);
                AddFrame(fB.Build());
            }
        }
 public GlowingAnimation(Atom atomToGlow, Color[] colors = null, int framePerColors = 7)
 {
     if(colors == null)
     {
         colors = new Color[]
         {
             Color.Yellow,
             Color.Blue,
         };
     }
     var symbol = atomToGlow.Symbol;
     var pt = atomToGlow.Position;
      
     var fB = new FrameBuilder();
     foreach (Color color in colors)
     {
         fB.Clear();
         fB.AddFrameItem(symbol, color, pt);
         AddFrame(fB.Build());
     }
 }
        public GlowingAnimation(Atom atomToGlow, Color[] colors = null, int framePerColors = 7)
        {
            if (colors == null)
            {
                colors = new Color[]
                {
                    Color.Yellow,
                    Color.Blue,
                };
            }
            var symbol = atomToGlow.Symbol;
            var pt     = atomToGlow.Position;

            var fB = new FrameBuilder();

            foreach (Color color in colors)
            {
                fB.Clear();
                fB.AddFrameItem(symbol, color, pt);
                AddFrame(fB.Build());
            }
        }
Esempio n. 5
0
        public BlobsAnimation(List <Coord> centers,
                              int maxRadius,
                              Color color,
                              string symbol = "*")
        {
            var fB = new FrameBuilder();

            for (int r = 2; r < Math.Max(3, maxRadius); r++)
            {
                var circles = centers.Select(c => new SimpleCircle(c, r));
                fB.Clear();

                foreach (var circle in circles)
                {
                    foreach (Coord pt in circle)
                    {
                        fB.AddFrameItem(symbol, color, pt);
                    }
                }

                AddFrame(fB.Build());
            }
        }
Esempio n. 6
0
        public BlobsAnimation(  List<Coord> centers, 
                                int maxRadius, 
                                Color color, 
                                string symbol = "*")
        {
            var fB = new FrameBuilder();

            for (int r = 2; r < Math.Max(3, maxRadius); r++)
            {
                var circles = centers.Select(c => new SimpleCircle(c, r));
                fB.Clear();

                foreach (var circle in circles)
                {
                    foreach (Coord pt in circle)
                    {
                        fB.AddFrameItem(symbol, color, pt);
                    }
                }

                AddFrame(fB.Build());
            }
        }