Circles w/Recrusion: Joanna

 

Screen Shot 2015-03-30 at 7.06.37 PM

import rhinoscriptsyntax as rs
import random

#def random_color():
#return (random.randint(0,255), random.randint(0,255), random.randint(0,255))
color = random.randint(255, 255)

pt = rs.GetPoint(“Pick starting point”)

def RecursiveCircle(pt, d):
if d == 0:
return 1
else:
c = rs.AddCircle(pt, d)
rs.ObjectColor(c, color)

return RecursiveCircle(pt, d-1)

RecursiveCircle(pt, 10)