Dragon Curve from Paper Folding

Plot of the Heighway Dragon Curve fractal from folding paper halfway N times
106 Downloads
Aktualisiert 21. Feb 2019

Lizenz anzeigen

dragon(N) plots the dragon curve produced from folding a strip of paper halfway N times, assuming that it can be done endlessly. The resulting plot is the folded paper: one end is at (0,0), followed by 2^N line segments at right angles with each other.

The hsv colormap is used to color the line segments from end to end.

For more information, follow the Youtube link in the script.

Zitieren als

Karl Ezra Pilario (2024). Dragon Curve from Paper Folding (https://www.mathworks.com/matlabcentral/fileexchange/70351-dragon-curve-from-paper-folding), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2018b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Fractals finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.2

Changed the title.

1.0.1

Changed the flipping implementation.

1.0.0