Example #1
0
 public static void OnDraw(Canvas canvas)
 {
     canvas.DrawColor(Paints.background.Color);
     Paints.DrawCircle(canvas, 360, 300, 200); // Easy
     Paints.DrawCircle(canvas, 360, 900, 200); // Hard
     canvas.DrawBitmap(_silver, 166 * GameView.Factor,
                       38 * GameView.Factor, null);
     canvas.DrawBitmap(_golden, 166 * GameView.Factor,
                       638 * GameView.Factor, null);
     Paints.DrawTextMode(canvas, 215, 340, "Easy", 130, 100);
     Paints.DrawTextMode(canvas, 215, 940, "Hard", 130, 100);
 }
Example #2
0
        public static void OnDraw(Canvas canvas)
        {
            canvas.DrawColor(Paints.background.Color);
            Paint ccir = new Paint();

            ccir.SetStyle(Paint.Style.Stroke);
            ccir.AntiAlias   = true;
            ccir.Color       = new Color(71, 106, 111);
            ccir.StrokeWidth = 30 * GameView.Factor;
            canvas.DrawCircle(360 * GameView.Factor, 640 * GameView.Factor,
                              300 * GameView.Factor, ccir);
            Paints.DrawCircle(canvas, 180, 400, 120); //5
            Paints.DrawCircle(canvas, 180, 850, 120); //9
            Paints.DrawCircle(canvas, 540, 400, 120); //7
            Paints.DrawCircle(canvas, 540, 850, 120); //11
            Paints.DrawTextMode(canvas, 135, 440, "6", 130, 100);
            Paints.DrawTextMode(canvas, 110, 893, "10", 130, 100);
            Paints.DrawTextMode(canvas, 505, 440, "8", 130, 100);
            Paints.DrawTextMode(canvas, 470, 893, "12", 130, 100);
            Paints.DrawTextM(canvas, 80, 100, "Choose number", 80, 50);
            Paints.DrawTextM(canvas, 210, 200, "of points", 80, 50);
        }