public override void Draw (DrawBatch drawBatch) { drawBatch.FillCircle(new SolidColorBrush(Color.SkyBlue), _origin, 175); drawBatch.FillArc(new SolidColorBrush(Color.LimeGreen), _origin, 150, _startAngle, _arcLength, ArcType.Sector); drawBatch.DrawClosedArc(new Pen(Color.Green, 15), _origin, 150, _startAngle, _arcLength, ArcType.Sector); drawBatch.DrawPath(_lilyOuterFlower); drawBatch.DrawPath(_lilyInnerFlower); }
public override void Draw (DrawBatch drawBatch) { drawBatch.DrawClosedArc(_thickPen, new Vector2(100, 100), 75, -(float)(Math.PI * 0.25), -(float)(Math.PI * 0.5), ArcType.Segment); drawBatch.DrawClosedArc(_thickPen, new Vector2(100, 125), 50, 0, -(float)Math.PI, ArcType.Segment); drawBatch.DrawClosedArc(_thickPen, new Vector2(100, 200), 50, (float)(Math.PI * 0.25), -(float)(Math.PI * 1.5), ArcType.Segment); drawBatch.DrawClosedArc(_thickPen, new Vector2(250, 100), 75, -(float)(Math.PI * 0.25), -(float)(Math.PI * 0.5), ArcType.Segment, 16); drawBatch.DrawClosedArc(_thickPen, new Vector2(250, 125), 50, 0, -(float)Math.PI, ArcType.Segment, 16); drawBatch.DrawClosedArc(_thickPen, new Vector2(250, 200), 50, (float)(Math.PI * 0.25), -(float)(Math.PI * 1.5), ArcType.Segment, 16); drawBatch.DrawClosedArc(_thickPen, new Vector2(400, 100), 75, -(float)(Math.PI * 0.25), -(float)(Math.PI * 0.5), ArcType.Segment, 4); drawBatch.DrawClosedArc(_thickPen, new Vector2(400, 125), 50, 0, -(float)Math.PI, ArcType.Segment, 4); drawBatch.DrawClosedArc(_thickPen, new Vector2(400, 200), 50, (float)(Math.PI * 0.25), -(float)(Math.PI * 1.5), ArcType.Segment, 4); drawBatch.DrawClosedArc(_thickPen, new Vector2(100, 335), 75, -(float)(Math.PI * 0.25), -(float)(Math.PI * 0.5), ArcType.Sector); drawBatch.DrawClosedArc(_thickPen, new Vector2(100, 410), 50, 0, -(float)Math.PI, ArcType.Sector); drawBatch.DrawClosedArc(_thickPen, new Vector2(100, 480), 50, (float)(Math.PI * 0.25), -(float)(Math.PI * 1.5), ArcType.Sector); drawBatch.DrawClosedArc(_thickPen, new Vector2(250, 335), 75, -(float)(Math.PI * 0.25), -(float)(Math.PI * 0.5), ArcType.Sector, 16); drawBatch.DrawClosedArc(_thickPen, new Vector2(250, 410), 50, 0, -(float)Math.PI, ArcType.Sector, 16); drawBatch.DrawClosedArc(_thickPen, new Vector2(250, 480), 50, (float)(Math.PI * 0.25), -(float)(Math.PI * 1.5), ArcType.Sector, 16); drawBatch.DrawClosedArc(_thickPen, new Vector2(400, 335), 75, -(float)(Math.PI * 0.25), -(float)(Math.PI * 0.5), ArcType.Sector, 4); drawBatch.DrawClosedArc(_thickPen, new Vector2(400, 410), 50, 0, -(float)Math.PI, ArcType.Sector, 4); drawBatch.DrawClosedArc(_thickPen, new Vector2(400, 480), 50, (float)(Math.PI * 0.25), -(float)(Math.PI * 1.5), ArcType.Sector, 4); }