public void Draw(SurfaceEditor surface) { if (BorderAppearance == null) { BorderAppearance = new Cell(Color.Blue, Color.Black, 4); } Algorithms.Circle(Center.X, Center.Y, Radius, (x, y) => { if (surface.IsValidCell(x, y)) { surface.SetCell(x, y, BorderAppearance); } }); }
//public ICell FillAppearance; //public bool Fill; public void Draw(SurfaceEditor surface) { Algorithms.Ellipse(StartingPoint.X, StartingPoint.Y, EndingPoint.X, EndingPoint.Y, (x, y) => { if (surface.IsValidCell(x, y)) { surface.SetCell(x, y, BorderAppearance); } }); }