What am I being asked to do?
<p>I have an assignment to do and part of it does not make sense to me. Can anyone help me understand exactly what is required? This is what i was asked to do:</p>

<blockquote>
  <p><strong>Recursion Problem2</strong></p>
  
  <p>Adapt the triangular spiral program done in class to make a 
  more usual spiral made up of straight line segments.</p>
</blockquote>

<p>Here is the code I was provided with (program needing to be adapted):</p>

<pre><code>//prints a spiral triangle with starting size 100.

void setup(){
  int len=100;
  int startx =250;
  int starty= 250;
  float angle = PI;
  size (500,500);
  spiral_triangle(len, startx,starty,angle);

}

void spiral_triangle(int len, int startx, int starty, float angle){

   if (len&gt;1) 
        {line( startx, starty ,int(startx+len*cos(angle)),int(starty + len*sin(angle)) );
        int new_startx = int(startx+len*cos(angle));
        int new_starty = int(starty+len*sin(angle));
        int new_len = len -10;
        float new_angle = angle + PI/1.5;
        spiral_triangle(new_len, new_startx,new_starty,new_angle);
        } 
}
</code></pre>

<p>Thanks everyone.</p>
