I have asked this question before and I have (fuzzily) learned a work around or two. I am trying to build a geometric pattern using points. I am wondering what ideas the collective brain trust here could offer… I would like a slider that would show iterations of the following object…
Well, vertices are fairly simple dilations of n=1.
Once you have vertices, something like this for all the points on a side? May need an absolute value. Obviously something similar for Y, then (X,Y).
Yeah partitioning the line segments will definitely take care of those between the points. I’m struggling with nesting the lists properly. Haven’t quite wrapped my head around the interior ones of the previous iteration, I think I could get the expansion of the outer edge going though using polar coordinates. Using just 5 lists.
That is n=4 would show all of the dots, not just the orange ring.
Fun! We still do really do recursive functions which make it a little tough. If you get stuck trying to make it endless, reducing to a reasonable number of iterations might make it clearer. @aknauft might have some fun ideas for you as well
I’m banging my head against the wall trying to generate this list:
L1=0,1,2,3,4,0,0,1,1,2,2,3,3,4,4…
Messing around with mod and some other things. Got close a few times… Basically, trying to do what you had but generalized for any regular polygon. Kind of figured out the flow of points it will need to follow.
Here’s a super easy way to do it, just using a list to get all the iterations to show at once. I got around the “lists in lists” by using for statements and doing x and y separately:
P.S. I know its been two years but this was fun to solve, and I felt like someone could use this information even farther into the future