module

Blurhash

Constants

VERSION = {{ (`shards version \"/tmp/tmp.pfKPfD/src/src/blurhash\"`).chomp.stringify }}

Instance methods

components(str : String) : Tuple(Int32, Int32) | Nil

Returns components as {x, y} tuple for valid strings, nil otherwise.

Source
encode(x_components : Int, y_components : Int, path : Path) : String

NOTE: At the moment only png and jpg file types are supported.

Source
encode(x_components : Int, y_components : Int, canvas : StumpyCore::Canvas) : String
Source

Nested types