Liking cljdoc? Tell your friends :D

artlib.color.palettes

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/

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/
raw docstring

aclj

Sample palette.

Sample palette.
sourceraw docstring

bclj

Sample palette.

Sample palette.
sourceraw docstring

cclj

Sample palette.

Sample palette.
sourceraw docstring

dclj

Sample palette.

Sample palette.
sourceraw docstring

eclj

Sample palette.

Sample palette.
sourceraw docstring

fclj

Sample palette.

Sample palette.
sourceraw docstring

make-paletteclj

(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).
sourceraw docstring

rainbowclj

Sample palette.

Sample palette.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close