Crate random_icon_lib

Source
Expand description

A crate for creating a random round image in the svg format. Images are always symmetrical, in order to be more recognizable. It varies between transparent and black areas.

§Warning

An icon can be completely empty (transparent) or only showing tiny areas. If you want something to always be visible, consider giving it a border or background.

Re-exports§

pub use hashing::hash;

Modules§

hashing

Functions§

create_random_svg_file
Convenience function to create a new file at the given path and write a random icon to it.
create_svg_file_from_hashed_string
Convenience function to create a new file at the given path and write an icon from a hashed string to it.
write_random_svg
Creates a random icon and writes it as svg data.
write_svg_from_hashed_string
Converts text to an icon (via hashing) and writes it as svg data. The same text will always result in the same icon.