title: Draw overlapping shapes
body: <p>I'd like to draw one shape over another, and be able to view it from another perspective.</p>
  
  <p>This is what I want it to look like:</p>
  
  <p><img src="https://i.stack.imgur.com/ucilW.png" alt="A spider with 4 legs, and a circle at the end of each leg"></p>
  
  <p>This is what I have so far.</p>
  
  <pre><code>void Draw() 
  {
      glClear(GL_COLOR_BUFFER_BIT);
      #define r 0.5
      #define PI 3.1415926535898 
      GLint p = 100;
  
      double angle = 2*PI/p;
  
      glPolygonMode( GL_FRONT, GL_FILL );
      glColor3f(0.3,0.2,0.5);
  
      glBegin(GL_POLYGON);
      double angle1=0.0;
      glVertex2d(r*cos(0.0),r*sin(0.0));
      int i;
      for ( i=0 ; i&lt; p ;i++) {
          glVertex2d(r*cos(angle1),r*sin(angle1));
          angle1+=angle ;
      }
  }
  </code></pre>