title: From 2D to 3D drawing
body: <p>I've trying to make a 3D drawing, all that I got is drawing in 2D, as you will see in my code below, I'm trying to get the lines being drawn in 3D, with depth, but I can't find a way to do it without using boxes or already 3D figures that don't move at all. 
  Here is my code so far:</p>
  
  <pre><code>import peasy.*;    
  static final int Lin =100;
  
  //Loop Vintage
  float t;
  int x,y,z,a,b,c;
  
  //Camera 3D
  PeasyCam cam;
  
  void setup ()
  {
    background(20);
    size(800,600, P3D);
    //Distance of Camera
    cam = new PeasyCam(this, 1000);
  }
  
  void draw()
  {
    background(0);
    stroke(255);
    strokeWeight(1);
  
     //Loop Vintage
    Floop();  
  }
  
  void Floop()
  { pushMatrix();
    translate(CENTER,CENTER,CENTER);
    rotate(0);
    for(x=0;x&lt;Lin; x++)
      line(x1(t+x),y1(t+x),x2(t+x),y2(t+x)); 
    popMatrix();
    t++;
  }
  
  //Loop Vintage
  float x1(float t)
  {
    return sin(t/10) * 100 + sin(t/5) * 20;
  }
  float y1(float t)
  {
    return cos(t/10) * 100;
  }
  float x2(float t)
  {
    return sin(t/10) * 200 + sin(t) * 2;
  }
  float y2(float t)
  {
    return cos(t/20) * 200 + sin(t/12) * 20;
  }
  </code></pre>
  
  <p>As you can see, you'll need peasyCam to see any improvement. This code draw an "hyperboloid of one sheet" like figure, is not that perfect but is the closest geometric form that I found. I've trying to do draw it (or the lines re-drawing it) in 3D, if you have any idea that can help me, will be appreciate, 
  Thanks </p>