public static void Horizontal(FoxDraw foxDraw)
 {
     {
         foxDraw.StrokeColor(Colors.LightSeaGreen);
         foxDraw.DrawRectangle(255, 165, 10, 10);
     }
 }
Example #2
0
        public MainWindow()
        {
            InitializeComponent();
            var foxDraw = new FoxDraw(canvas);

            foxDraw.DrawRectangle(395, 220, 10, 10);
        }
        public MainWindow()
        {
            InitializeComponent();
            var foxDraw = new FoxDraw(canvas);

            // draw a green 10x10 square to the canvas' center.
            foxDraw.DrawRectangle(45, 45, 10, 10);
        }
        public MainWindow()
        {
            InitializeComponent();
            var foxDraw = new FoxDraw(canvas);

            // Draw a green 10x10 square to the canvas' center.

            foxDraw.DrawRectangle(canvas.Width / 2 - 5, canvas.Height / 2 - 5, 10, 10);
        }
Example #5
0
        public MainWindow()
        {
            InitializeComponent();
            var foxDraw = new FoxDraw(canvas);

            // draw a green 10x10 square to the canvas' center.
            foxDraw.FillColor(Colors.Green);
            foxDraw.DrawRectangle(140, 140, 10, 10);
        }
Example #6
0
        public MainWindow()
        {
            // draw a green 10x10 square to the canvas' center
            InitializeComponent();
            var foxDraw = new FoxDraw(canvas);

            foxDraw.FillColor(Colors.ForestGreen);
            foxDraw.DrawRectangle(canvas.Width / 2 - 5, canvas.Height / 2 - 5, 10, 10);
        }
        public void CenteredSquare(FoxDraw foxDraw)
        {
            // A negyszog bal felso sarkanak koordinatai
            double x1 = (canvas.Width / 2) - 4.5;
            double y1 = (canvas.Height / 2) - 4.5;

            // A negyszog oldalainak hosszanak meghatarozasa
            double a = 10;

            // Negyszog megrajzolasa - bal felso sarok koordinatai (x1, y1) es az oldalak hossza (a, a)
            foxDraw.DrawRectangle(x1, y1, a, a);
        }
Example #8
0
        public MainWindow()
        {
            InitializeComponent();
            var foxDraw = new FoxDraw(canvas);

            foxDraw.BackgroundColor(Colors.Gainsboro);
            double squareSide = 10;
            double left       = (canvas.Width - squareSide) / 2;
            double top        = (canvas.Height - squareSide) / 2;

            foxDraw.DrawRectangle(left, top, squareSide, squareSide);
        }
Example #9
0
        public MainWindow()
        {
            InitializeComponent();
#if DEBUG
            this.AttachDevTools();
            var canvas  = this.Get <Canvas>("canvas");
            var foxDraw = new FoxDraw(canvas);

            ////
            // Draw a green 10x10 square to the canvas' center.
            var size    = 10;
            var xCenter = Width / 2;
            var yCenter = Height / 2;
            foxDraw.SetFillColor(Colors.Green);
            foxDraw.DrawRectangle(xCenter - size / 2, yCenter - size / 2, size, size);
#endif
        }
Example #10
0
 public static void SquareAtCenter(FoxDraw foxDraw)
 {
     foxDraw.DrawRectangle(295, 295, 10, 10);
 }
Example #11
0
 static void DrawSquareToCenter(FoxDraw foxDraw)
 {
     foxDraw.DrawRectangle(230, 140, 10, 10);
 }