Ejemplo n.º 1
0
        public void InitializeTests()
        {
            center = new Point(1000, 1000);
            var spiral = new ArchimedesSpiral(center);

            cloudLayouter = new CloudLayouter(spiral, center);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public CircularCloudLayouter(Point center)
 {
     this.Center      = center;
     archimedesSpiral = new ArchimedesSpiral(center, 0.1);
     Rectangles       = new List <Rectangle>();
 }