Hilbert curve
After downloading the applet you will find two buttons when you enlarge the graphic view to the right.
A delete-button (to delete all objects) and a Create-button to recreate everything.
I improved the GeoGebra Script and added some comments. (16-9-2017)
I'm using affine transformation matrices now. The same method is presented in: Pythagoras tree Affine