title: Is there anyway to do this recursively in pygame?
body: <p>I want to do a custom fractal</p>
  
  <p><a href="https://i.stack.imgur.com/qadz6.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qadz6.jpg" alt="this is my fractal"></a></p>
  
  <p>what I did is create a circle with radius R, Let's say that we have 3 smaller circles inside that touch the bigger one, They are all the same size, I wanted to find the radius of the small circles in function of the radius of the big circle</p>
  
  <p>I could work out the formula and with a function that finds the radius :</p>
  
  <pre><code>def formula(R):
      return ((sqrt(3)*R)/(sqrt(3)+2))
  </code></pre>
  
  <p>I can explain it if someone needs it</p>
  
  <p>what I want to do now is to write a recursive function that does this for each one of the small circles again with pygame</p>