ScratchData LogoScratchData
Back to as1029's profile

Paperfold Fractal (Dragon Curve)

ASas1029•Created June 13, 2022
Paperfold Fractal (Dragon Curve)
0
0
5 views
View on Scratch

Instructions

Pick size, press "begin" Click the green flag again to run the project again ~~~~~~~~~~~HOW IT WORKS~~~~~~~~~~~~~ Try folding a paper in half. Without unfolding it, fold it in the same direction, on top of itself. Try to repeat this process 3 or 4 times. Then, unfold the paper into 90 degree angles. What you should notice is something that looks a little bit like this fractal, hence me calling it the "paperfold fractal". (If it doesn't look like my fractal, no worries, you might've folded it reverse to me). Now, if you follow the line like you were walking on it, marking down the lefts and rights you take, you will find a pattern that looks like this: R RRL RRLRRLL RRLRRLLRRRLLRLL The pattern involves flipping what's already there (hello -> olleh), changing the orientation (R to L and L to R), and adding an R (or L, depending on how you folded it) to the middle. All you have to do is put this into an algorithm, and you get this fractal!

Description

This was actually pretty difficult to program, feel free to look at my code :)

Project Details

Project ID704771584
CreatedJune 13, 2022
Last ModifiedMarch 25, 2023
SharedJune 16, 2022
Visibilityvisible
CommentsAllowed