Sierpinski Curve Stepwise Evolution
The Sierpinski Triangle is a triangle divided repeatedly into smaller triangles. There are many ways to create a Sierpinski Triangle.
This project adds animation to the Arrowhead Curve method in Sierpinski 4C: https://scratch.mit.edu/projects/197992261/
The animation is done by extending the new sides from their ends always at 60 degrees and joining the new middle side.
This project produces the Sierpinski Triangle with a stepwise evolution of one level at a time.
* See the companion project where all levels evolve together: https://scratch.mit.edu/projects/197842976/
* See too my Pythagoras Tree Evolution project: https://scratch.mit.edu/projects/198989992/
Huge thanks to @selim_tezel for his project Koch evolution: https://scratch.mit.edu/projects/196915411/
His project inspired me to write this project that grows the Sierpinski Triangle from an Arrowhead Curve.
My algorithm is different (simpler). This version varies just one length parameter. I had to do the math for the Sierpinski Triangle and to calculate the lengths of the new growing sides.
Each line segment changes into 3 new segments. The outside two line segments grow at fixed 60 degree angles. The middle line joining them shrinks to half the size of the original line segment.