public static void DrawSquareInPosition(FoxDraw foxDraw, int x, int y)
        {
            Random rnd = new Random();

            foxDraw.FillColor(Color.FromRgb((byte)rnd.Next(0, 255), (byte)rnd.Next(0, 255), (byte)rnd.Next(0, 255)));

            foxDraw.DrawRectangle(x, y, 50, 50);
        }
Пример #2
0
        public void Square(int xCoordinate, int YCoordinate)
        {
            var foxDraw = new FoxDraw(canvas);

            for (int i = 1; i < 4; i++)
            {
                foxDraw.DrawRectangle((xCoordinate + 40) * i, (YCoordinate + 40) * i, 50, 50);
            }
        }
Пример #3
0
        private void PositionSquare(FoxDraw foxDraw, Random rnd)
        {
            double x1 = rnd.Next(300);
            double y1 = rnd.Next(300);

            double a = 50;

            foxDraw.FillColor(Color.FromRgb((byte)rnd.Next(0, 255), (byte)rnd.Next(0, 255), (byte)rnd.Next(0, 255)));
            foxDraw.DrawRectangle(x1, y1, a, a);
        }
 public static void PositionSquare(FoxDraw foxDraw, int x, int y)
 {
     {
         foxDraw.StrokeColor(Colors.LightSeaGreen);
         for (int i = 1; i < 4; i++)
         {
             foxDraw.DrawRectangle(x * i, y * i, x, x);
         }
     }
 }
Пример #5
0
        public static void SquareDrawer(FoxDraw foxDraw)
        {
            int x = 0;
            int y = 0;

            for (int i = 1; i < 3; i++)
            {
                foxDraw.DrawRectangle(x, y, 50, 50);
                x = x + 50;
                y = y + 50;
            }
        }
Пример #6
0
        public static void DrawSquares(FoxDraw foxDraw)
        {
            int x = 10;
            int y = 10;

            for (int i = 0; i < 4; i++)
            {
                foxDraw.DrawRectangle(x, y, 50, 50);
                x = x + i * 100;
                y = y + i * 100;
            }
        }
Пример #7
0
        public void DrawSquare()
        {
            var foxDraw = new FoxDraw(canvas);

            for (int i = 1; i < 4; i++)
            {
                double x = 10 + i * 50;
                double y = 10 + i * 50;

                foxDraw.FillColor(Colors.ForestGreen);
                foxDraw.DrawRectangle(x, y, 50, 50);
            }
        }
Пример #8
0
        public static void DrawThreeSquares(FoxDraw foxDraw, double x1, double y1)
        {
            Random random = new Random();

            for (int i = 0; i < 3; i++)
            {
                foxDraw.FillColor(Color.FromArgb(
                    (byte)70,
                    (byte)random.Next(255),
                    (byte)random.Next(255),
                    (byte)random.Next(255)));
                foxDraw.DrawRectangle(x1, y1, 50, 50);

                x1 += (double)random.Next(100);
                y1 += (double)random.Next(100);
            }
        }
 private void DrawSquare(double x, double y, FoxDraw foxDraw)
 {
     foxDraw.DrawRectangle(x, y, 50, 50);
 }
Пример #10
0
        private void DrawSquare(double x, double y)
        {
            var foxDraw = new FoxDraw(canvas);

            foxDraw.DrawRectangle(x, y, 50, 50);
        }
Пример #11
0
 static void Squarez(FoxDraw foxDraw, int x, int y)
 {
     foxDraw.DrawRectangle(x, y, 50, 50);
 }
Пример #12
0
        private void DrawReactangle(int startPosX, int startPosY)
        {
            var foxDraw = new FoxDraw(canvas);

            foxDraw.DrawRectangle(startPosX, startPosY, 50, 50);
        }
        private void Squarer(int x, int y)
        {
            var foxDraw = new FoxDraw(canvas);

            foxDraw.DrawRectangle(x, y, 50, 50);
        }