예제 #1
0
        protected override void Initialize()
        {
            prox_list = new ProxList(Proximity, Widget.MAXIMUM_WIDGET_SIZE, Widget.MAXIMUM_WIDGET_SIZE);

            var area = new RectangleF(0, 0, 1920 + 400, 1080 + 400);

            //Parent.Area.SizeOnly().ResizedBy(100f, Directions2D.DR);

            for (var i = 0; i < circle_count; i++)
            {
                circles.Add(NeuronsCircle.RandomCircle(prox_list, area));
            }

            if (Parent.ParentDWindow is null)
            {
                return;
            }

            LoadContent(this, EventArgs.Empty);
        }
예제 #2
0
 public void AddRandomCircle(RectangleF area) =>
 circles.Add(NeuronsCircle.RandomCircle(prox_list, area));