This is not a question but I just wanted to share some nice code I was able
to write to create the Sierpinski carpet.
Nothing new probably but it seemed pretty cool to me,
I also formatted it in a fancy way to match the graph result: https://www.desmos.com/geometry/wrr3yzgz90
(This is for a lesson I’m gonna be giving about fractals …)
In other words:
start with a triangle, shrink it towards one vertex, then towards the other vertex and then towards the other vertex.
You get a new set.
Now repeat the process with this new set.
ok, just to get you started:
dilate(X, p, 1/2) means something very easy:
for any point of the set X, connect it to p, and take the point half way in that line.