Hitomezashi Pattern Generator

Hitomezashi (一目刺し) is a traditional Japanese method of creating stitch patterns from dashed lines to form seemingly random repeating patterns. Inspired by this Numberphile video .