diff --git a/docs/annotated.html b/docs/annotated.html index 32d88c3..253417d 100644 --- a/docs/annotated.html +++ b/docs/annotated.html @@ -19,7 +19,7 @@
Public Types | |
enum | algorithm { ltr_symmetric, -ltr_asymmetric, -sigil + |
enum | algorithm { algorithm::ltr_symmetric, +algorithm::ltr_asymmetric, +algorithm::sigil } |
List of identicon algorithms. | |
List of identicon algorithms. More... | |
Public Member Functions | ||
Identiconpp (const uint8_t columns, const uint8_t rows, algorithm type=algorithm::ltr_symmetric, const string &background="ffffffff", const vector< string > &foreground={ "000000ff" }, const array< const uint8_t, 2 > &padding={ 0, 0 }) | ||
Identiconpp (const uint8_t columns, const uint8_t rows, algorithm type=algorithm::ltr_symmetric, const string &background="ffffffff", const vector< string > &foreground={ "000000ff" }, const array< const uint8_t, 2 > &padding={ 0, 0 }) | ||
Initialises an instance of Identiconpp. More... | ||
Magick::Image | generate (const string &digest, const uint16_t width=100) |
+
|
+ +strong | +
List of identicon algorithms.
+Enumerator | |
---|---|
ltr_symmetric | Generates symmetric (vertically mirrored) identicons. + |
ltr_asymmetric | Generates asymmetric identicons. + |
sigil | Generates the same results as sigil and pydenticon. + |
algorithm::ltr_symmetric
, algorithm::ltr_symmetric
, identiconpp is a library to generate identicons. Written in C++.
+identiconpp is a library to generate identicons for C++.
You get the images as Magick::Image
. This allows you to make all kinds of modifications.
The HTML reference can be generated with build_doc.sh, if doxygen is installed. It is also available at doc.schlomp.space/identiconpp/.
You need to generate hashes yourself, any hexadecimal string will do. Make sure to use a safe hashing algorithm for sensitive data (not MD5). You can select as many columns and rows as you like, but make sure you have enough entropy. If something seems to be wrong, exceptions will be thrown.
+The "sigil" algorithm generates the same results as sigil and pydenticon.
floor(log2(n_colors)) + 1
bits.Implemented in ltr_symmetric.cpp
@@ -113,7 +129,10 @@ $(function() {floor(log2(n_colors)) + 1
bits.Implemented in ltr_asymmetric.cpp