public void InitializeTests() { center = new Point(1000, 1000); var spiral = new ArchimedesSpiral(center); cloudLayouter = new CloudLayouter(spiral, center); }
public static void Main() { var center = new Point(BitmapWidth / 2, BitmapHeight / 2); var spiral = new ArchimedesSpiral(center); var cloudLayouter = new CloudLayouter(spiral, center); FillCloudWithRectangles(cloudLayouter); var bitmap = GetBitmapWithRectangles(cloudLayouter); var directory = Environment.CurrentDirectory; bitmap.Save($"{directory}\\..\\..\\Images\\{BitmapName}{CountOfRectangles}.png", ImageFormat.Png); }
public CircularCloudLayouter(Point center) { this.Center = center; archimedesSpiral = new ArchimedesSpiral(center, 0.1); Rectangles = new List <Rectangle>(); }