add example drawing a dragon curve#29
Conversation
| turtle.hide(); | ||
| } | ||
|
|
||
| fn dragon(turtle: &mut Turtle, turn: f64, depth: usize, c0: f64, c1: f64) { |
There was a problem hiding this comment.
Could you add some documentation to this function regarding the meaning of each of these parameters? If you can't also give them more detailed names, it would be really helpful to someone playing with this example in the future if you could write down some information about what each variable and parameter means and what it does to the output.
|
Wow! Thank you for the PR! This is an incredibly cool example! I've left a few small comments regarding some documentation. Once you get a chance to do that, I am ready to merge this. Thank you so much! Regarding the Travis CI build, it is intentionally failing right now on MacOS because #27 has not been fixed yet. Since all the Linux builds pass, you are good to go! |
|
I wrote a little more than I intended, but hopefully this makes it very clear what the code is doing. (folding paper) ;) I also mirrored the curve to better match the description. |
sunjay
left a comment
There was a problem hiding this comment.
I love your ascii diagrams and very clear explanation of the example! This is awesome!

Every turtle library/language needs an example of a dragon curve. ;)