public override void Draw(DrawBatch drawBatch) { drawBatch.FillRectangle(Brush.Green, new CCRect(50, 50, 200, 100)); drawBatch.FillCircle(Brush.Blue, new CCVector2(350, 100), 50); drawBatch.FillCircle(Brush.Blue, new CCVector2(500, 100), 50, 16); drawBatch.FillPath(Brush.Gray, StarPoints(new CCVector2(150, 300), 8, 100, 50, 0, false)); drawBatch.FillRectangle(Brush.Green, new CCRect(300, 250, 200, 100), (float)Math.PI / 4f); }
public override void Draw(DrawBatch drawBatch) { base.Draw(drawBatch); // Use the bounds to layout the positioning of our drawable assets var bounds = VisibleBoundsWorldspace; var center = bounds.Center; InitializePaths(); drawBatch.FillCircle(new SolidColorBrush(Microsoft.Xna.Framework.Color.SkyBlue), center, 175); drawBatch.FillPath(new SolidColorBrush(Microsoft.Xna.Framework.Color.LimeGreen), _lilypadPath.Buffer, 0, _lilypadPath.Count); drawBatch.DrawPath(_lilypadStroke); drawBatch.DrawPath(_outerFlowerStroke); drawBatch.DrawPath(_innerFlowerStroke); }