patternomaly icon indicating copy to clipboard operation
patternomaly copied to clipboard

duplicates when auto-generating patterns

Open theme1256 opened this issue 4 years ago • 1 comments

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.

image

theme1256 avatar May 28 '20 11:05 theme1256

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.

barath99 avatar Jul 20 '21 18:07 barath99