#include <string>
#include <vector>
#include "identiconpp.hpp"
#include <Magick++/Image.h>
int main(int argc, char *argv[])
{
std::string digest = "973dfe463ec85785f5f95af5ba3906ee"
"db2d931c24e69824a89ea65dba4e813b";
const std::vector<std::string> colors =
{
"800000ff",
"008000ff",
"000080ff",
"808000ff",
"008080ff",
"800080ff"
};
Magick::Image img;
if (argc > 1)
{
digest = argv[1];
}
{
"ffffffff", colors, { 20, 20 });
img.write("identicon1.png");
}
{
"00000080", colors);
img.write("identicon2.png");
}
{
"000000ff", colors);
img.write("identicon3.png");
}
{
"000000c0", colors, { 10, 10 });
img.write("identicon4.png");
}
return 0;
}