(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`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close