Crate rdenticon

Source

Re-exports§

pub use ril;

Structs§

Config
Configuration variables for rendering identicons.
ConfigBuilder
A builder for Configs.
Rgb
Represents an RGB pixel.
Rgba
Represents an RGBA pixel.

Enums§

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

Traits§

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

Functions§

generate_identicon
Generates an identicon for the given message. The message can be something like a username or a unique key.
render_identicon
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.