анимация "Кот Бэйсик" и далее возможна параметризация
animation "Cat Basic" and further parameterization is possible
Код: //cat.csusing System; using System.Drawing;using System.Windows.Forms;class cat: Form { public static void Main() { Application.Run(new cat()); } public cat() { Text = "cat"; BackColor = System.Drawing.Color.Blue; ForeColor = System.Drawing.Color.Red; ResizeRedraw = true; Width = 600; Height = 360; } protected override void OnPaint(PaintEventArgs dan) {Pen pen = new Pen(ForeColor);SolidBrush BlueBrush = new SolidBrush(Color.Blue);Graphics dav = dan.Graphics; for (int k = 1; k <=5; k++) for (int x = -50; x <=50; x++) {int y=0;if (x< 50) y=-x/5;if (x< 25) y= x/5;if (x<-25) y=-x/5;if (x<-50) y= x/5;dav.FillRectangle(BlueBrush, 0, 120, 600, 200);dav.DrawEllipse(new Pen(Color.Magenta, 3), x*k+195, 225, 10, -80);dav.DrawEllipse(new Pen(Color.Magenta, 3), x*k+200, 200, 100, y+50);dav.DrawEllipse(new Pen(Color.Magenta, 3), x*k+280, y+170, 50, 50);dav.DrawEllipse(new Pen(Color.Magenta, 3), x*k+290, y+190, 10, 10);//x/5, x/5dav.DrawEllipse(new Pen(Color.Magenta, 3), x*k+294, y+194, 2, 2);dav.DrawEllipse(new Pen(Color.Magenta, 3), x*k+310, y+190, 10, 10);//x/5, x/5dav.DrawEllipse(new Pen(Color.Magenta, 3), x*k+314, y+194, 2, 2);dav.DrawEllipse(new Pen(Color.Magenta, 3), x*k+280, y+205, 25, 10);dav.DrawEllipse(new Pen(Color.Magenta, 3), x*k+310, y+205, 25, 10);dav.DrawLine(new Pen(Color.Magenta, 3), new Point(x*k+280, y+190), new Point(x*k+280, y+160));dav.DrawLine(new Pen(Color.Magenta, 3), new Point(x*k+290, y+175), new Point(x*k+280, y+160));dav.DrawLine(new Pen(Color.Magenta, 3), new Point(x*k+330, y+190), new Point(x*k+330, y+160));dav.DrawLine(new Pen(Color.Magenta, 3), new Point(x*k+320, y+175), new Point(x*k+330, y+160));dav.DrawLine(new Pen(Color.Magenta, 3), new Point(x*k+210, 240), new Point(x*k+210, 280));dav.DrawLine(new Pen(Color.Magenta, 3), new Point(x*k+220, 230), new Point(x*k+220, 290));dav.DrawLine(new Pen(Color.Magenta, 3), new Point(x*k+280, 230), new Point(x*k+280, 290));dav.DrawLine(new Pen(Color.Magenta, 3), new Point(x*k+290, 240), new Point(x*k+290, 280));dav.DrawEllipse(new Pen(Color.Magenta, 3), x*k+205, 275, 10, 10);dav.DrawEllipse(new Pen(Color.Magenta, 3), x*k+215, 285, 10, 10);dav.DrawEllipse(new Pen(Color.Magenta, 3), x*k+275, 285, 10, 10);dav.DrawEllipse(new Pen(Color.Magenta, 3), x*k+285, 275, 10, 10);System.Threading.Thread.Sleep(10);}}}