Skip to content

Commit

Permalink
some reminder notes about palettes
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Jul 15, 2023
1 parent d4a52eb commit aade9e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shimmers/common/palette.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@
(by-names [:blue-yellow-tan-brown]))

;; https://www.youtube.com/watch?v=f4s1h2YETNY led me to:
;; https://iquilezles.org/articles/palettes/
;; https://iquilezles.org/articles/palettes/ and
;; http://dev.thi.ng/gradients/
;; TODO: just re-use thi.ng.color.gradients/cosine-gradient-color?
(defn smooth-palette
"Output an RGB triplet ranged from 0.0 to 1.0."
Expand Down
2 changes: 2 additions & 0 deletions src/shimmers/sketches/paletteable.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,5 @@
:type :canvas
:tags #{:genuary2023}}
(ctrl/mount (page)))

;; See also https://towardsdatascience.com/the-perils-of-palette-transfer-f2739b5e4d2c

0 comments on commit aade9e7

Please sign in to comment.