public override void Draw(DrawBatch drawBatch) { drawBatch.DrawPath(_gpathf); drawBatch.DrawPath(_gpathr); drawBatch.DrawPath(_gpath2f); drawBatch.DrawPath(_gpath2r); }
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.DrawPath(_insetPath); drawBatch.DrawPrimitivePath(new Pen(Microsoft.Xna.Framework.Color.OrangeRed), _starPoints1, PathType.Closed); drawBatch.DrawPath(_centerPath); drawBatch.DrawPrimitivePath(new Pen(Microsoft.Xna.Framework.Color.OrangeRed), _starPoints2, PathType.Closed); drawBatch.DrawPath(_outsetPath); drawBatch.DrawPrimitivePath(new Pen(Microsoft.Xna.Framework.Color.OrangeRed), _starPoints3, PathType.Closed); }
public override void Draw (DrawBatch drawBatch) { drawBatch.DrawLine(_gradWidth, new Vector2(25, 25), new Vector2(125, 125)); drawBatch.DrawCircle(_gradWidth, new Vector2(200, 75), 50); drawBatch.DrawPath(_widthStar); drawBatch.DrawLine(_gradLength, new Vector2(25, 150), new Vector2(125, 250)); drawBatch.DrawCircle(_gradLength, new Vector2(200, 200), 50); drawBatch.DrawPath(_lengthStar); }
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); }
public override void Draw(DrawBatch drawBatch) { drawBatch.DrawLine(_thickBlue, new CCVector2(50, 50), new CCVector2(250, 50)); drawBatch.DrawPath(_wavyPath); drawBatch.DrawRectangle(_thickMagenta, new CCRect(50, 160, 200, 100)); drawBatch.DrawCircle(_thickBlack, new CCVector2(350, 100), 50); drawBatch.DrawCircle(_thickDarkGray, new CCVector2(350, 225), 50, 16); drawBatch.DrawRectangle(_thickGreen, new CCRect(50, 350, 200, 100), (float)Math.PI / 4f); }
public override void Draw (DrawBatch drawBatch) { for (int i = 0; i < _gPaths.Length; i++) { GraphicsPath path = _gPaths[i]; drawBatch.DrawPath(path); for (int j = 0; j < _baseCoords.Length - 1; j++) drawBatch.DrawLine(PrimitivePen.Black, _baseCoords[j] + Offset(i), _baseCoords[j + 1] + Offset(i)); } }
public override void Draw(DrawBatch drawBatch) { float space = 30; float macroSpace = 50; float length = 200; CCVector2 o1 = new CCVector2(macroSpace, macroSpace); CCVector2 o2 = new CCVector2(macroSpace * 2 + length, macroSpace); CCVector2 o3 = new CCVector2(macroSpace * 2 + length, macroSpace * 2 + length); CCVector2 o4 = new CCVector2(macroSpace, macroSpace * 2 + length); drawBatch.DrawPath(new GraphicsPath(_flatPen, new List<CCVector2> { o1 + new CCVector2(0, space * 0), o1 + new CCVector2(length, space * 0) })); drawBatch.DrawPath(new GraphicsPath(_squarePen, new List<CCVector2> { o1 + new CCVector2(0, space * 1), o1 + new CCVector2(length, space * 1) })); drawBatch.DrawPath(new GraphicsPath(_trianglePen, new List<CCVector2> { o1 + new CCVector2(0, space * 2), o1 + new CCVector2(length, space * 2) })); drawBatch.DrawPath(new GraphicsPath(_invTrianglePen, new List<CCVector2> { o1 + new CCVector2(0, space * 3), o1 + new CCVector2(length, space * 3) })); drawBatch.DrawPath(new GraphicsPath(_arrowPen, new List<CCVector2> { o1 + new CCVector2(0, space * 4), o1 + new CCVector2(length, space * 4) })); drawBatch.DrawPath(new GraphicsPath(_flatPen, new List<CCVector2> { o2 + new CCVector2(space * 0, 0), o2 + new CCVector2(space * 0, length) })); drawBatch.DrawPath(new GraphicsPath(_squarePen, new List<CCVector2> { o2 + new CCVector2(space * 1, 0), o2 + new CCVector2(space * 1, length) })); drawBatch.DrawPath(new GraphicsPath(_trianglePen, new List<CCVector2> { o2 + new CCVector2(space * 2, 0), o2 + new CCVector2(space * 2, length) })); drawBatch.DrawPath(new GraphicsPath(_invTrianglePen, new List<CCVector2> { o2 + new CCVector2(space * 3, 0), o2 + new CCVector2(space * 3, length) })); drawBatch.DrawPath(new GraphicsPath(_arrowPen, new List<CCVector2> { o2 + new CCVector2(space * 4, 0), o2 + new CCVector2(space * 4, length) })); drawBatch.DrawPath(new GraphicsPath(_flatPen, new List<CCVector2> { o3 + new CCVector2(length, space * 0), o3 + new CCVector2(0, space * 0) })); drawBatch.DrawPath(new GraphicsPath(_squarePen, new List<CCVector2> { o3 + new CCVector2(length, space * 1), o3 + new CCVector2(0, space * 1) })); drawBatch.DrawPath(new GraphicsPath(_trianglePen, new List<CCVector2> { o3 + new CCVector2(length, space * 2), o3 + new CCVector2(0, space * 2) })); drawBatch.DrawPath(new GraphicsPath(_invTrianglePen, new List<CCVector2> { o3 + new CCVector2(length, space * 3), o3 + new CCVector2(0, space * 3) })); drawBatch.DrawPath(new GraphicsPath(_arrowPen, new List<CCVector2> { o3 + new CCVector2(length, space * 4), o3 + new CCVector2(0, space * 4) })); drawBatch.DrawPath(new GraphicsPath(_flatPen, new List<CCVector2> { o4 + new CCVector2(space * 0, length), o4 + new CCVector2(space * 0, 0) })); drawBatch.DrawPath(new GraphicsPath(_squarePen, new List<CCVector2> { o4 + new CCVector2(space * 1, length), o4 + new CCVector2(space * 1, 0) })); drawBatch.DrawPath(new GraphicsPath(_trianglePen, new List<CCVector2> { o4 + new CCVector2(space * 2, length), o4 + new CCVector2(space * 2, 0) })); drawBatch.DrawPath(new GraphicsPath(_invTrianglePen, new List<CCVector2> { o4 + new CCVector2(space * 3, length), o4 + new CCVector2(space * 3, 0) })); drawBatch.DrawPath(new GraphicsPath(_arrowPen, new List<CCVector2> { o4 + new CCVector2(space * 4, length), o4 + new CCVector2(space * 4, 0) })); }
public override void Draw (DrawBatch drawBatch) { drawBatch.DrawPath(_gpathf); drawBatch.DrawPath(_gpathr); drawBatch.DrawPath(_gpathfi); drawBatch.DrawPath(_gpathri); drawBatch.DrawPath(_gpathfo); drawBatch.DrawPath(_gpathro); drawBatch.DrawPath(_gpath2f); drawBatch.DrawPath(_gpath2r); drawBatch.DrawPath(_gpath2fi); drawBatch.DrawPath(_gpath2ri); drawBatch.DrawPath(_gpath2fo); drawBatch.DrawPath(_gpath2ro); drawBatch.DrawPath(_gpath3f); drawBatch.DrawPath(_gpath3r); drawBatch.DrawPath(_gpath4f); drawBatch.DrawPath(_gpath4r); }