Exemplo n.º 1
0
 public static void Draw_D(Graphics g, Pen pen, int x, int y)
 {
     LineAndArc.DrawLine(g, pen, x, y, 25, 25, 25, 125);
     LineAndArc.DrawLine(g, pen, x, y, 25, 25, 50, 25);
     LineAndArc.DrawLine(g, pen, x, y, 25, 125, 50, 125);
     LineAndArc.DrawArc(g, pen, x, y, 25, 25, 50, 100, -90, 180);
 }
Exemplo n.º 2
0
 private static void Draw_P(Graphics g, Pen pen, int x, int y)
 {
     LineAndArc.DrawLine(g, pen, x, y, 0, 0, 5, 0);
     LineAndArc.DrawLine(g, pen, x, y, 10, 0, 25, 0);
     LineAndArc.DrawLine(g, pen, x, y, 30, 0, 45, 0);
     LineAndArc.DrawLine(g, pen, x, y, 50, 0, 55, 0);
 }
Exemplo n.º 3
0
 private static void Draw_H(Graphics g, Pen pen, int x, int y)
 {
     LineAndArc.DrawLine(g, pen, x, y, 0, 0, 5, 0);
     LineAndArc.DrawLine(g, pen, x, y, 10, 0, 15, 0);
     LineAndArc.DrawLine(g, pen, x, y, 20, 0, 25, 0);
     LineAndArc.DrawLine(g, pen, x, y, 30, 0, 35, 0);
 }
Exemplo n.º 4
0
        public static void Draw_(Graphics g, Pen pen, int time, int group)
        {
            if (time <= 180 * group)
            {
                if (group % 2 == 0)
                {
                    LineAndArc.DrawArc(g, pen, (group - 6) * 100, (height / 2) - 100, 0, 0, 400, 200, -time, time - group * 180);
                    LineAndArc.DrawArc(g, pen, (group - 4) * 100, (height / 2) - 100, 0, 0, 200, 200, 0, -180);
                    LineAndArc.DrawArc(g, pen, (group - 4) * 100, (height / 2) - 100, 0, 0, 400, 200, 180, -180);
                    LineAndArc.DrawArc(g, pen, (group - 2) * 100, (height / 2) - 100, 0, 0, 200, 200, 0, (group - 1) * 180 - time);
                }
                else
                {
                    LineAndArc.DrawArc(g, pen, (group - 5) * 100, (height / 2) - 100, 0, 0, 200, 200, -time, time - group * 180);
                    LineAndArc.DrawArc(g, pen, (group - 5) * 100, (height / 2) - 100, 0, 0, 400, 200, 180, -180);
                    LineAndArc.DrawArc(g, pen, (group - 3) * 100, (height / 2) - 100, 0, 0, 200, 200, 0, -180);
                    LineAndArc.DrawArc(g, pen, (group - 3) * 100, (height / 2) - 100, 0, 0, 400, 200, 180, (group - 1) * 180 - time);
                }

                g.DrawString("Loading...", new Font("Verdana", 50, FontStyle.Regular), new LinearGradientBrush(new Rectangle(500, 500, 1000, 1000), Color.Silver, Color.MediumVioletRed, 90, true), width / 2, height / 2 + 300);
            }
            else
            {
                Draw_(g, pen, time, group + 1);
            }
        }
Exemplo n.º 5
0
 public static void Draw_T(Graphics g, Pen pen, int x, int y)
 {
     LineAndArc.DrawLine(g, pen, x, y, 50, 25, 50, 125);
     LineAndArc.DrawLine(g, pen, x, y, 25, 25, 75, 25);
 }
Exemplo n.º 6
0
 private static void Draw_G(Graphics g, Pen pen, int x, int y)
 {
     LineAndArc.DrawLine(g, pen, x, y, 0, 0, 15, 0);
     LineAndArc.DrawLine(g, pen, x, y, 20, 0, 35, 0);
     LineAndArc.DrawLine(g, pen, x, y, 40, 0, 45, 0);
 }
Exemplo n.º 7
0
 private static void Draw_T(Graphics g, Pen pen, int x, int y)
 {
     LineAndArc.DrawLine(g, pen, x, y, 0, 0, 15, 0);
 }
Exemplo n.º 8
0
        public static void Draw_(Graphics g, int x, int y, int time)
        {
            int angel = time % 180;

            if (angel > 90)
            {
                angel = 180 - angel;
            }

            //SolidBrush solidColorBrush = new SolidBrush(Color.Red);
            Brush brush1 = new LinearGradientBrush(new Rectangle(-500, -500, 1000, 1000), Color.MintCream, Color.MediumVioletRed, angel, true);
            Brush brush2 = new LinearGradientBrush(new Rectangle(100, -150, 1000, 1000), Color.Navy, Color.Blue, angel, true);
            Brush brush3 = new LinearGradientBrush(new Rectangle(155, -150, 500, 500), Color.Red, Color.Yellow, angel, true);

            Pen pen1 = new Pen(brush1)
            {
                Width    = 20,
                StartCap = LineCap.Round,
                EndCap   = LineCap.Round
            };

            Pen pen2 = new Pen(brush2)
            {
                Width    = 20,
                StartCap = LineCap.Round,
                EndCap   = LineCap.Round
            };

            Pen pen3 = new Pen(brush3)
            {
                Width    = 20,
                StartCap = LineCap.Round,
                EndCap   = LineCap.Triangle
            };

            if (time > 90)
            {
                LineAndArc.DrawArc(g, pen1, x, y, 0, 0, 100, 100, -180, 90);
                time -= 90;
                if (time > 210)
                {
                    LineAndArc.DrawLine(g, pen1, x, y, 50, 0, 260, 0);
                    time -= 210;
                    if (time > 225)
                    {
                        LineAndArc.DrawArc(g, pen1, x, y, 210, 0, 100, 100, -90, 225);
                        time -= 225;
                        if (time > 90)
                        {
                            LineAndArc.DrawArc(g, pen1, x, y, 140, 70, 100, 100, -45, -90);
                            time -= 90;
                            if (time > 90)
                            {
                                LineAndArc.DrawArc(g, pen1, x, y, 70, 0, 100, 100, 45, 90);
                                time -= 90;
                                if (time > 135)
                                {
                                    LineAndArc.DrawArc(g, pen1, x, y, 0, 70, 100, 100, -45, -135);
                                    time -= 135;
                                    {
                                        if (time > 50)
                                        {
                                            LineAndArc.DrawLine(g, pen1, x, y, 0, 120, 0, 170);
                                            time -= 50;
                                            if (time > 310)
                                            {
                                                LineAndArc.DrawLine(g, pen1, x, y, 0, 170, 310, 170);
                                                time -= 310;
                                                if (time > 50)
                                                {
                                                    LineAndArc.DrawLine(g, pen1, x, y, 310, 170, 310, 120);
                                                    time -= 50;
                                                    if (time > 90)
                                                    {
                                                        LineAndArc.DrawLine(g, pen2, x, y, 155, -30, 155, -120);
                                                        time -= 90;
                                                        if (time > 10)
                                                        {
                                                            LineAndArc.DrawLine(g, pen3, x, y, 155, -150, 155, -160);
                                                        }
                                                        else
                                                        {
                                                            LineAndArc.DrawLine(g, pen1, x, y, 155, -150, 155, -150 - time);
                                                        }
                                                    }
                                                    else
                                                    {
                                                        LineAndArc.DrawLine(g, pen2, x, y, 155, -30, 155, -30 - time);
                                                    }
                                                }
                                                else
                                                {
                                                    LineAndArc.DrawLine(g, pen1, x, y, 310, 170, 310, 170 - time);
                                                }
                                            }
                                            else
                                            {
                                                LineAndArc.DrawLine(g, pen1, x, y, 0, 170, time, 170);
                                            }
                                        }
                                        else
                                        {
                                            LineAndArc.DrawLine(g, pen1, x, y, 0, 120, 0, 120 + time);
                                        }
                                    }
                                }
                                else
                                {
                                    LineAndArc.DrawArc(g, pen1, x, y, 0, 70, 100, 100, -45, -time);
                                }
                            }
                            else
                            {
                                LineAndArc.DrawArc(g, pen1, x, y, 70, 0, 100, 100, 45, time);
                            }
                        }
                        else
                        {
                            LineAndArc.DrawArc(g, pen1, x, y, 140, 70, 100, 100, -45, -time);
                        }
                    }
                    else
                    {
                        LineAndArc.DrawArc(g, pen1, x, y, 210, 0, 100, 100, -90, time);
                    }
                }
                else
                {
                    LineAndArc.DrawLine(g, pen1, x, y, 50, 0, time + 50, 0);
                }
            }
            else
            {
                LineAndArc.DrawArc(g, pen1, x, y, 0, 0, 100, 100, -180, time);
            }
        }