Exemplo n.º 1
0
        public override void Draw(DrawBatch drawBatch)
        {
            drawBatch.DrawEllipse(_bluePen, new CCRect(50, 50, 50, 50));
            drawBatch.DrawEllipse(_bluePen, new CCRect(125, 50, 100, 50));
            drawBatch.DrawEllipse(_bluePen, new CCRect(250, 50, 150, 50));
            drawBatch.DrawEllipse(_bluePen, new CCRect(50, 125, 50, 100));
            drawBatch.DrawEllipse(_bluePen, new CCRect(125, 125, 100, 100));
            drawBatch.DrawEllipse(_bluePen, new CCRect(250, 125, 150, 100));
            drawBatch.DrawEllipse(_bluePen, new CCRect(50, 250, 50, 150));
            drawBatch.DrawEllipse(_bluePen, new CCRect(125, 250, 100, 150));
            drawBatch.DrawEllipse(_bluePen, new CCRect(250, 250, 150, 150));

            drawBatch.DrawEllipse(_redPen, new CCRect(425, 50, 100, 50), 0);
            drawBatch.DrawEllipse(_redPen, new CCRect(425, 150, 100, 50), (float)Math.PI / 8);
            drawBatch.DrawEllipse(_redPen, new CCRect(425, 250, 100, 50), (float)Math.PI / 4);
            drawBatch.DrawEllipse(_redPen, new CCRect(425, 350, 100, 50), (float)Math.PI / 8 * 3);

            drawBatch.DrawEllipse(_redPen, new CCRect(50, 425, 50, 100), 0);
            drawBatch.DrawEllipse(_redPen, new CCRect(150, 425, 50, 100), (float)-Math.PI / 8);
            drawBatch.DrawEllipse(_redPen, new CCRect(250, 425, 50, 100), (float)-Math.PI / 4);
            drawBatch.DrawEllipse(_redPen, new CCRect(350, 425, 50, 100), (float)-Math.PI / 8 * 3);
        }