 ;; full process without use of filter-channels
 (time (let [effect (make-effect :dj-eq {:lo (m/drand -20 20) :mid (m/drand -20 20) :hi (m/drand -20 20) :peak_bw 1.3 :shelf_slope 1.5 :rate (m/irand 4000 100000)})
             effect2 (make-effect :distort {:factor 1.0})
-            in (signal-from-pixels p1 {:layout :interleaved
-                                          :channels [0 1 2]
-                                          :bits 24
+            inluv (p/filter-colors c/to-HWB p5)
+            in (signal-from-pixels inluv {:layout :interleaved
+                                          :channels [0]
+                                          :bits 8
                                           :coding :none
-                                          :signed false})
-            res (apply-effect effect2 in)
-            resp (signal-to-pixels (p/clone-pixels p1) res {:channels [0 1 2]
+                                          :signed true})
+            res (apply-effect effect in)
+            resp (signal-to-pixels (p/clone-pixels p1) res {:channels [0]
                                                             :layout :interleaved
-                                                            :bits 24
+                                                            :bits 8
                                                             :coding :none
-                                                            :signed false})]
-        (p/set-canvas-pixels canvas (p/filter-channels p/normalize nil resp))))
+                                                            :signed true})]
+        (p/set-canvas-pixels canvas (p/filter-channels p/normalize nil (p/filter-colors c/from-HWB resp)))))
 
 
 ;; fold


(core/close-session)

(core/save-canvas canvas (core/next-filename "generateme/aa/res" ".jpg"))

(p/set-canvas-pixels canvas p5)


  (println b2)
  (p/set-canvas-pixels canvas (p/filter-channels p/equalize-filter false 
                                                 (p/filter-channels p/normalize-filter false
                                                                    (g/blend-machine p4 p5 b)))))

(quick-bench (p/filter-channels p/dilate-filter false p1))

