Skip to content

Instantly share code, notes, and snippets.

@vinipsmaker
Created October 4, 2013 18:48
Show Gist options
  • Save vinipsmaker/6830760 to your computer and use it in GitHub Desktop.
Save vinipsmaker/6830760 to your computer and use it in GitHub Desktop.
def draw_curve(curve):
if is_flat(curve):
draw_segments(curve)
else:
pieces = subdivide(curve)
draw_curve(pieces[0])
draw_curve(pieces[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment