Logiciel libre de géométrie, d'analyse et de simulation multiplateforme par Yves Biton

Accueil Tutoriels l’API de MathGraph32

Programming a figure en Python : The dragon curve

modification mercredi 23 avril 2024.

Toutes les versions de cet article : [English] [français]



Since version 7.9.1, MathGraph32 allows the user to add objects to a figure using Python language.

Here we will generate a dragon curve dragon.

If you modify the Python code, click on button Exécuter to execute your new version of the code.

The figure you get is dynamical : you can capture points A and B once the dragon curve is created.
Click on one of the yellow buttons to launch the dragon curve creation at a given depth.