File tree 1 file changed +3
-11
lines changed
1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 369
369
:palette (m/sample (c/iq-palette-random-gradient ) num)})
370
370
0.5 {:type :colourlovers
371
371
:palette (rand-nth c/colourlovers-palettes)}
372
- 0.6 (let [preset (rand-nth c/paletton-presets-list)
373
- p (rand-nth c/colourlovers-palettes)
374
- h (map #(c/paletton-rgb-to-hue %) p)]
375
- {:type :colourlovers-paletton
376
- :conf {:hue h
377
- :preset preset
378
- :type :monochromatic
379
- :compl false }
380
- :palette (let [v (reduce #(concat %1 (c/paletton %2 preset)) p h)]
381
- (vec v))})
372
+ 0.6 {:type :gradient
373
+ :palette (m/sample (rand-nth (vals c/gradient-presets)) 7 )}
382
374
(let [h (r/drand 360.0 )
383
375
t (rand-nth [:monochromatic :triad :triad :triad :triad :triad :tetrad :tetrad :tetrad ])
384
376
conf {:compl (r/brand 0.6 )
385
377
:angle (r/drand 10.0 90.0 )
386
378
:adj (r/brand 0.5 )
387
379
:hue h
388
- :preset (rand-nth c/colourlovers-palettes )
380
+ :preset (rand-nth c/paletton-presets-list )
389
381
:type t}]
390
382
{:type :paletton
391
383
:conf conf
You can’t perform that action at this time.
0 commit comments