This namespace contains an implementation of procedural periodic color palettes. It is based on a Inigo Quilez article from 1999.
A color palette is simply a unary function that accepts an input value and returns an RGB vec. As the input runs from 0 to 1 (normalized palette index), the palette oscilates.
This namespace contains an implementation of procedural periodic color palettes. It is based on a Inigo Quilez article from 1999. A color palette is simply a unary function that accepts an input value and returns an RGB vec. As the input runs from 0 to 1 (normalized palette index), the palette oscilates. See https://iquilezles.org/articles/palettes/
(make-palette [a1 a2 a3] [b1 b2 b3] [c1 c2 c3] [d1 d2 d3])
(make-palette a1 a2 a3 b1 b2 b3 c1 c2 c3 d1 d2 d3)
Returns a color palette based on the following function: color(t) = a + b ⋅ cos[ 2π(c⋅t+d)]
This returns a unary function. All inputs and outpus are normalized (0.0 to 1.0).
Returns a color palette based on the following function: color(t) = a + b ⋅ cos[ 2π(c⋅t+d)] This returns a unary function. All inputs and outpus are normalized (0.0 to 1.0).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close