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