Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Plot polygons after iteratively applying a translation, scaling and rotation
ResourceFunction["IteratedAffinePlot"][rules, init] plots the polygon described by the points init, and the transformed shape after applying the transformation given by rules. | |
ResourceFunction["IteratedAffinePlot"][rules, init,iter] plots the polygon described by the points init, and the transformed shape after applying the transformation given by rules, for the number of iterations specified by iter. |
n | all iterations through n |
{{n}} | plot only the nth iteration |
{n1,n2} | plots iterations from n1 through n2 |
{n1,n2,dn} | plots iterations from n1 through n2 in steps of dn |
Show a single iteration of a given set of transformation rules, along with the initial polygon:
In[1]:= | ![]() |
Out[1]= | ![]() |
Show 5 iterations of a set of transformation rules:
In[2]:= | ![]() |
Out[2]= | ![]() |
Show the fifth through tenth iterations:
In[3]:= | ![]() |
Out[3]= | ![]() |
Show the fifth, seventh and ninth iterations:
In[4]:= | ![]() |
Out[4]= | ![]() |
Show only the fifth iteration:
In[5]:= | ![]() |
Out[5]= | ![]() |
Use Graphics options:
In[6]:= | ![]() |
Out[6]= | ![]() |
The Sierpinski triangle:
In[8]:= | ![]() |
Out[8]= | ![]() |
Compare with the result of SierpinskiMesh:
In[9]:= | ![]() |
Out[9]= | ![]() |
The Sierpinski carpet:
In[10]:= | ![]() |
Out[10]= | ![]() |
Compare with the result of MengerMesh:
In[11]:= | ![]() |
Out[11]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License