Example #1
0
 public void Draw(ExtendedSpriteBatch spriteBatch)
 {
     foreach (var rect in FilledRects)
     {
         spriteBatch.FillRectangle(rect, Color.Black );
     }
 }
Example #2
0
 public void Draw(ExtendedSpriteBatch spriteBatch)
 {
     if (Active)
     {
         spriteBatch.DrawRectangle(Rect, Color.Black);
         spriteBatch.FillRectangle(Rect, PaintColor);
     }
 }
Example #3
0
 public void Draw(ExtendedSpriteBatch spriteBatch)
 {
     spriteBatch.DrawRectangle(new Rectangle((int)Position.X-Width/2, (int)Position.Y-Height/2, Width, Height), Color.Black);
     spriteBatch.FillRectangle(new Rectangle((int)_maxPosition.X, (int) _maxPosition.Y, 2, 2), Color.Red );
 }
Example #4
0
 private void DrawRectangles(ExtendedSpriteBatch spriteBatch)
 {
     foreach (var rect in _rectangles.Reverse<PaintedRectangle>())
     {
         spriteBatch.FillRectangle(rect.Rect, rect.RectColor);
     }
 }