1 #include "include/taruga.hpp"
3 void recursive_koch(taruga::Turtle
& turtle
, int length
, int depth
)
7 turtle
.forward(length
);
10 recursive_koch(turtle
, length
, depth
-1);
11 turtle
.turn_right(60);
12 recursive_koch(turtle
, length
, depth
-1);
13 turtle
.turn_left(120);
14 recursive_koch(turtle
, length
, depth
-1);
15 turtle
.turn_right(60);
16 recursive_koch(turtle
, length
, depth
-1);
21 taruga::Turtle turtle
;
24 turtle
.turn_right(90);
25 turtle
.backwards(850);
28 turtle
.turn_right(90);
31 recursive_koch(turtle
, 5, 5);