I recently was in need for the "new" matplotlib colormaps, and didn't want to leave clj, and ported them from python. Is there a clj colormap lib? I'd like to put this somewhere, I'm sure I will need them again.
Wonderful! https://github.com/Clojure2D/clojure2d By @tsulej
with the magnificent documentation of the color namespace https://clojure2d.github.io/clojure2d/docs/notebooks/notebooks/color.html
What you shared above looks great 💜
Number theory is so much fun with clojure.
Cool! I add for the reference some static pages with a list of all supported: 1. https://clojure2d.github.io/clojure2d/docs/static/colors.html 2. https://clojure2d.github.io/clojure2d/docs/static/palettes/index.html 3. https://clojure2d.github.io/clojure2d/docs/static/gradients/index.html
https://github.com/Clojure2D/clojure2d?tab=readme-ov-file (sry, meant to link to the readme line)
Already there.
Yes. Btw. palettes are discrete, gradients are continuous so if you prefer continuous gradient go for (gradient :viridis/viridis) and use it as a function which accepts a number from 0.0 to 1.0 to get a color.