Drawing a Dragons curve in Python

Posted by Connor Franzoni on Stack Overflow See other posts from Stack Overflow or by Connor Franzoni
Published on 2009-04-19T08:06:50Z Indexed on 2010/05/16 22:50 UTC
Read the original article Hit count: 289

Filed under:
|

I am trying to work out how to draw the dragons curve, with pythons turtle using the An L-System or Lindenmayer system. I no the code is something like

the Dragon curve; initial state = ‘F’, replacement rule – replace ‘F’ with ‘F+F-F’, number of replacements = 8, length = 5, angle = 60

But have no idea how to put that into code.

© Stack Overflow or respective owner

Related posts about python

Related posts about fractals