Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate a Hitomezashi stitch pattern
ResourceFunction["HitomezashiStitchPattern"][{x1, x2, x3, …}, {y1, y2, y3, …}] returns the lines of a Hitomezashi stitch pattern based on the Boolean values xi and yi. | |
ResourceFunction["HitomezashiStitchPattern"][n,m] returns the lines of a Hitomezashi stitch pattern based on the integers, reals, or strings n and m. |
Create simple Hitemezashi pattern:
In[1]:= | ![]() |
Out[1]= | ![]() |
Visualize it:
In[2]:= | ![]() |
Out[2]= | ![]() |
Use integers rather than a list of booleans:
In[3]:= | ![]() |
Out[3]= | ![]() |
Use real numbers instead:
In[4]:= | ![]() |
Out[4]= | ![]() |
Use strings instead:
In[5]:= | ![]() |
Out[5]= | ![]() |
Create a zig-zag pattern:
In[6]:= | ![]() |
Out[6]= | ![]() |
Nothing might be returned if the input is too short:
In[7]:= | ![]() |
Out[7]= | ![]() |
Invalid input will return an empty line:
In[8]:= | ![]() |
Out[8]= | ![]() |
Non-True objects are turned into False using TrueQ:
In[9]:= | ![]() |
Out[9]= | ![]() |
Create some simple patterns:
In[10]:= | ![]() |
Out[10]= | ![]() |
Create a random pattern and color it in:
In[11]:= | ![]() |
Out[12]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License