public CommunicationVisualizer(SharpNeatLib.CPPNs.SubstrateDescription _sd, ModularNetwork _net) { InitializeComponent(); //zlevel = _zlevel; drawFont = new System.Drawing.Font("Arial", 8); drawBrush = new System.Drawing.SolidBrush(System.Drawing.Color.Black); drawFormat = new System.Drawing.StringFormat(); sd = _sd; net = _net; _net.UpdateNetworkEvent += networkUpdated; activation = new activationLevels[200]; // outgoingActivation = new List<float>[200]; for (int i = 0; i < activation.Length; i++) { activation[i] = new activationLevels(); //outgoingActivation[i] = new List<float>(); } penConnection = new Pen(Color.Black); penRed = new Pen(Color.Red); this.SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.DoubleBuffer, true); }