Liking cljdoc? Tell your friends :D

blurhash.decode


decodeclj/s

(decode blurhash w h & [punch linear])

The function takes a blurhash, along with some parameters, and returns an image as a pixel matrix. Along with the blurhash string, you need to provide width and height (w, h) values of the image you want to decode.

The optional punch tunes the contrast of the image. If you want the image to be decoded into a matrix of linear floating-point values, set the linear parameter to true.

The function takes a blurhash, along with some parameters, and returns an
image as a pixel matrix. Along with the blurhash string, you need to provide
width and height (w, h) values of the image you want to decode.

The optional `punch` tunes the contrast of the image.
If you want the image to be decoded into a matrix of linear floating-point
values, set the `linear` parameter to `true`.
sourceraw docstring

decode-acclj/s

(decode-ac blurhash value maxvalue)
source

decode-componentsclj/s

(decode-components blurhash)
source

decode-dcclj/s

(decode-dc value)
source

get-colorsclj/s

(get-colors blurhash size-x size-y max-val)
source

get-real-maxvalclj/s

(get-real-maxval blurhash punch)
source

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

× close