Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidComponents = errors.New("blurhash: must have between 1 and 9 components")
ErrInvalidComponents is returned when components passed to Encode are invalid.
View Source
var ErrInvalidHash = errors.New("blurhash: invalid hash")
ErrInvalidHash is returned when the library encounters a hash it can't recognise.
Functions ¶
func Components ¶
Components returns the X and Y components of a blurhash.
func DecodeDraw ¶
DecodeDraw decodes the given hash into the given image.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.