Crate rdenticon

source ·

Re-exports

pub use ril;

Structs

Configuration variables for rendering identicons.
A builder for Configs.
Represents an RGB pixel.
Represents an RGBA pixel.

Enums

An error that occurs when building a Config. See ConfigBuilder::build for more information.
Represents the underlying encoding format of an image.

Traits

A trait implemented by ranges that can be normalized to inclusive ranges within the range 0.0..=1.0.

Functions

Generates an identicon for the given message. The message can be something like a username or a unique key.
Renders an identicon for the given hash. The hash is strictly 20-bytes long. If your hash is shorter, you should pad it. Similarly, if your hash is longer, you should truncate it.