Exemplo n.º 1
0
        public static void Start()
        {
            Tortoise.Show();
            Tortoise.Hide();
            Tortoise.SetX(225);
            Tortoise.SetY(150);

            Tortoise.SetSpeed(10);
            ColorWheel.AddColor(Colors.Crimson);
            ColorWheel.AddColor(Colors.DarkRed);
            ColorWheel.AddColor(Colors.FireBrick);
            for (int i = 0; i < 6; i++)
            {
                Tortoise.SetPenColor(ColorWheel.GetNextColor());
                Tortoise.Move((i + 1) * 4);
                Tortoise.Turn(-360.0 / 6);
                for (int j = 0; j < 15; j++)
                {
                    Tortoise.SetPenWidth(17);
                    Tortoise.Move((j + 1) * 8);
                    Tortoise.Turn(360.0 / 5);
                }

                //--Tortoise.getBackgroundWindow().setBackground(PenColors.Yellows.PeachPuff);
            }

            Tortoise.SetX(300);
            Tortoise.SetY(200);
            for (int i = 0; i < 5; i++)
            {
                Tortoise.SetPenColor("Black");
                Tortoise.Move(25);
                Tortoise.Turn(360.0 / 5);
            }
        }
Exemplo n.º 2
0
 public static void main(string[] args)
 {
     Tortoise.Show();
     Tortoise.SetSpeed(10);
     Tortoise.SetX(200);
     drawHouse(40);
     drawHouse(120);
     drawHouse(90);
     drawHouse(20);
 }
Exemplo n.º 3
0
        public static void Main2(string[] args)
        {
            Tortoise.SetSpeed(10);
            Tortoise.SetX(200);
            var heigthOfHouse = 40;

            Tortoise.SetPenColor("LightGray");
            DrawHouse(heigthOfHouse);

            heigthOfHouse = 120;
            DrawHouse(heigthOfHouse);

            //DrawHouse(120);
            DrawHouse(90);
            DrawHouse(20);
        }
Exemplo n.º 4
0
        public static void Start()
        {
            Tortoise.Show();
            Tortoise.SetSpeed(10);
            var side = 2;

            for (int i = 0; i < 75; i++)
            {
                //     Set the current pen color to yellow --#6.1
                Tortoise.SetPenColor(Colors.Yellow);
                //     Use the current pen color for the line the tortoise draws --#6.2
                side++;
                Tortoise.Move(side);
                Tortoise.SetX(555);
                Tortoise.SetY(65);
                Tortoise.Turn(360.0 / 3);
                Tortoise.Turn(1);
            }
        }
Exemplo n.º 5
0
 public static void Start()
 {
     Tortoise.Show();
     Tortoise.SetX(150);
     Tortoise.SetY(200);
     //Tortoise.SetSpeed(10);
     Tortoise.InstantSpeed(true);
     for (int i = 0; i < 360; i++)
     {
         Tortoise.Move(3);
         Tortoise.Turn(1);
         if (i % 20 == 0)
         {
             for (int j = 0; j < 360; j++)
             {
                 Tortoise.Move(1);
                 Tortoise.Turn(1);
                 Tortoise.SetPenWidth((j + 100) / 100);
             }
         }
     }
 }