Turtle code under Chapter 8 (Fractals)
Lonami opened this issue · comments
When showing the turtle code, there's a part that says:
Assuming we have a sentence generated from the L-system, we can walk through the sentence character by character and call the appropriate function as outlined above.
...
char c = sentence.charAt(i);
if (c == 'F') {
line(0,0,len,0);
translate(len,0);
} else if (c == 'F') {
translate(len,0);
} else if (c == '+') {
...
The second 'F' should be a 'G', the book is AMAZING though!
Thanks, this has been fixed for the next edition!