private void DrawSquare(double size)
        {
            var foxDraw = new FoxDraw(canvas);

            foxDraw.DrawRectangle(150 - size / 2, 150 - size / 2, size, size);
        }
Esempio n. 2
0
 public void CenterBox(int size, FoxDraw foxDraw, Random rnd)
 {
     foxDraw.FillColor(Color.FromArgb(RandomByte(rnd), RandomByte(rnd), RandomByte(rnd), RandomByte(rnd)));
     foxDraw.DrawRectangle((canvas.Width - size) / 2, (canvas.Height - size) / 2, size, size);
 }
Esempio n. 3
0
 static void CenterSquarez(FoxDraw foxDraw, double size, double canvasW, double canvasH)
 {
     foxDraw.DrawRectangle(canvasW / 2 - size / 2, canvasH / 2 - size / 2, size, size);
 }