This is an algorithm for drawing "Dragon Curve" using libGDX.
Dragon curve : rotate the previous shap with 90 angle for each order.
Example :-
Dragon curve
Order one.
Order two.
Order three.
Order ten.
A dragon curve is any member of a family of self-similar fractal curves, which can be approximated by recursive methods such as Lindenmayer systems.