title: How to initialize a variable twice?
body: <p>I'm trying to initialize a variable twice in 2 different functions without the second initialization having effect on the first. </p>
  
  <pre><code>float X;
  
  void setup()
  {
    size(400, 400);
    background(255);
  }
  void draw() 
  {
    Rect1();
    Rect2();
  }
  
  void Rect1()
  {
    fill(255,0, 0);
    rect(X, 20, 40, 40);
    X=20;
  }
  
  void Rect2()
  { 
    fill(0, 255, 0);
    rect(X, 200, 40, 40);
    X=50;
  }
  </code></pre>