title: How to insert variables to dat.Gui with an array?
body: <p>I try to declare Variables via an array to use them in an dat.Gui controller. This is my attempt:</p>
  
  <pre><code>&lt;script&gt;
    window.Horizontale = 300;
    window.Vertikale = 300;
    window.A = new Array();
  
    for (var i=1; i&lt;7; i++) {
      window.A[i] = false;
    }
  
    window.onload = function() {
      var gui = new dat.GUI();
      gui.add(window, 'Horizontale', 0, 600);
      gui.add(window, 'Vertikale', 0, 600);
  
      for (var i=1; i&lt;7; i++) {
        gui.add(window, A[i]);
      }
      gui.remember(window);
    };
  &lt;/script&gt;
  </code></pre>
  
  <p>The variables in the array dont appear in the GUI. I am really new to Javascript, so maybe it is just a problem of the declaration? </p>