Skip to content

Commit 6eedee0

Browse files
committed
feat(artist): shuffle colors within a scheme for more randomness
1 parent 1f6e06a commit 6eedee0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/artist.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ function randomcolorscheme(weights_or_num=100)
111111
if length(C) < 64 && rand() < 0.95
112112
colors = randsubseq(C.colors, rand())
113113
isempty(colors) && (colors = C.colors)
114+
shuffle!(colors)
114115
print("color scheme: ", repr(scheme), ", random size: ", length(colors))
115116
else
116117
if rand() < 0.3

0 commit comments

Comments
 (0)