patternomaly
patternomaly copied to clipboard
duplicates when auto-generating patterns
I have an issue with the auto-generation of patterns. Sometimes it generates the same pattern twice, which kinda defeats the purpose.
In my implementation, it happens more often than, what might be good.
You can create an array of patterns as a workaround for this issue, like below:
let patterns = [ draw('square', '#1f77b4'), draw('line', '#ff7f0e'), draw('triangle', '#2ca02c')]
And accessing the elements through a loop might solve this issue of duplicates.