About Algoscarf.

scarf generator

Algoscarf is an algorithmic scarf generator. You give it input and it gives you a design for making a scarf.

The way Algoscarf creates its patterns is by taking your initial input and putting it through a sorting algorithm. At each step in the sorting algorithm, Algoscarf records the state of the list of colours. Then, at the end, it puts all of the steps together to create a pattern of stripes.

Because Algoscarf only checks a single factor to sort on, it might not sort things in the way you'd expect. For example, the color #FF00FF (a very bright pink) will register as more blue than #193BA8 (a very dark blue).

To learn more about sorting algorithms, check out the [Wikipedia page], or the sorting module on [VisuAlgo].

You can also check out my blog to see what I'm up to now.

I originally wrote Algoscarf in 2017, but returned to it in 2019 to make some minor changes. It went off the net for a bit while I updated my website and I put it back online in 2026. The sorting algorithm implementations are untested, so be warned!

Return to Algoscarf