Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Plot iterations for the 2D chaos game
ResourceFunction["ChaosGame"][n,k,d] gives k iterations of the 2D chaos game on a regular n-gon with iter points using a ratio of 1/2, dropping the first d points. | |
ResourceFunction["ChaosGame"][{n,r},k,d] uses a ratio r. |
Get three iterations:
In[1]:= |
Out[1]= |
Try several geometries:
In[2]:= |
Out[2]= |
Use more iterations:
In[3]:= |
Out[3]= |
Increase ratios:
In[4]:= |
Out[4]= |
An animation of the process:
In[5]:= |
In[6]:= |
Out[6]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License