uint64_t identiconpp_generate(const char magick[], const char digest[], const uint16_t width)
Generates identicon from digest.
Definition: c_interface.cpp:81
17 #ifndef IDENTICONPP_C_H 18 #define IDENTICONPP_C_H 67 const char background[9],
68 const char foreground[][9],
69 const uint8_t foreground_len,
70 const uint8_t padding[2]);
82 const char digest[],
const uint16_t width);
93 #endif // IDENTICONPP_C_H uint64_t identiconpp_generate(const char magick[], const char digest[], const uint16_t width)
Generates identicon from digest.
Definition: c_interface.cpp:81
Generates asymmetric identicons.
Definition: identiconpp_c.h:43
bool identiconpp_setup(const uint8_t columns, const uint8_t rows, identiconpp_algorithm type, const char background[9], const char foreground[][9], const uint8_t foreground_len, const uint8_t padding[2])
Setup identicon parameters.
Definition: c_interface.cpp:33
Generates symmetric (vertically mirrored) identicons.
Definition: identiconpp_c.h:41
diff --git a/docs/index.html b/docs/index.html
index 37115c1..c7ecde9 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -71,7 +71,7 @@ $(function() {
The "sigil" algorithm generates the same results as sigil and pydenticon.
Example
{C++}
// Compile with g++ $(Magick++-config --cppflags --ldflags) -lidenticonpp
#include <identiconpp.hpp>
#include <Magick++/Image.h>
int main()
{
Identiconpp identicon(5, 5, Identiconpp::algorithm::ltr_symmetric,
"ffffff80", { "800000ff" }, { 10, 10 });
Magick::Image img;
img = identicon.generate("55502f40dc8b7c769880b10874abc9d0", 200);
img.write("identicon.png");
}
C interface
-
This is somewhat experimental. Have a look at example.c.
+
This is somewhat experimental. Have a look at example.c and identiconpp_c.h.
It seems to be impossible to use Magick++
and MagickWand
in the same library, so the images are returned as base64-encoded strings.
Install
Gentoo
@@ -109,7 +109,7 @@ $(function() {
To generate a binary package, execute make package
Contributing
-
Contributions are always welcome. You can submit them as pull requests or via email to tastytea
<tt>tastytea.de.
+
Contributions are always welcome. You can submit them as pull requests on schlomp.space or via email to tastytea
<tt>tastytea.de (ideally using git format-patch
or git send-email
). Please do not submit them via GitHub, it is just a mirror.
Contact
See https://tastytea.de/
License & Copyright