Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate a random Koch curve
ResourceFunction["RandomKochCurve"][{positiondist,widthdist,heightdist},n] makes a random Koch curve based on the distributions positiondist,widthdist and heightdist, for n iterations. | |
ResourceFunction["RandomKochCurve"][{positiondist,widthdist,heightdist},{p1,p2,…},n] uses the starting points pi. |
Generate a Koch curve:
In[1]:= |
Out[1]= |
Generate a random Koch curve and display it:
In[2]:= |
Out[2]= |
Keep the position in the middle:
In[3]:= |
Out[3]= |
Distributions don't have to be distributions but can be constant:
In[4]:= |
Out[4]= |
Start with existing points:
In[5]:= |
Out[5]= |
Create a forest:
In[7]:= |
Out[7]= |
This work is licensed under a Creative Commons Attribution 4.0 International License