any libraries for generating gradients in clojure ?
https://clojure2d.github.io/clojure2d/docs/codox/clojure2d.color.html
Interesting stuff. I've never used a lot of these functions. As I'm sitting here trying to understand them, this is what I wrote. Does it make anything clear? I feel like it makes sense. (defn draw [state] (let [mask (q/create-graphics 300 300) drawing (q/create-graphics 300 300)] (q/with-graphics mask (q/triangle 50 200 150 50 150 200)) (q/with-graphics drawing (q/background 0) (q/no-stroke) (q/fill 255 0 0) (q/with-translation [100 100] (q/rect 0 0 100 150))) (q/image mask 0 0) (q/image drawing 300 0) (q/mask-image drawing mask) (q/image drawing 600 0)))
:size [900 300]