Conversation

Starting with a random point, then repeatedly walking halfway to one of three points, plotting where the point lands each time, gives you the sierpinski triangle. It's neat, here's a cool animation for 5 points:
Image
Quote Tweet
Embedded video
GIF
One my favorite ways to make fractals. The red point moves halfway to one of the corners randomly, and thats it!
Show this thread
1
4
Then asked me: "hey, what if, instead of jumping to a random choice of three points, you jump to a random point on the edge of a circle?" Some context, if you do the above algorithm for 4 points, you just get a sad flat square. I was fully expecting a sad flat disk.
2
4
I whipped up my crappy implementation, and this image came out. What the butts?? There's a hole in the middle? ... wait, is there a ring of darkness around the middle there???
Image
1
3
This had to be artifacts of my garbage GPU RNG implementation, so I reimplemented it on the CPU, with good RNG, and cranked the samples way up. ... oh. oh dear.
Image
1
5
Okay, what if we take a slice of that data? As in, start at the center, draw a line to the right, and plot the value that line goes over. Graph it! ... what???
Image
1
2
okay, let's take the derivative of that graph y'know that looks vaguely fractal-like somehow, those humps look recursively similar, aaaAAA, I'm not okay
Image
2
4
so uh, does someone know what the heck is going on here? or can someone work out an analytical solution to whatever the *heck* that graph is doing?
11
4
Replying to
If I understand correctly, the whole in the middle you can only end up at if you are already at the edge of the circle, and you randomly pick the other edge. The chance of this vanishes.
1
Replying to and
Yeah, to be in the middle, we need to start somewhere near the edge then pick the opposite side. To be near the edge, it would mean we need to keep picking the same point on the edge of the circle or it's neighbors.