/* This file is part of identiconpp. * Public Domain / CC-0 */ #include #include #include "identiconpp.hpp" using std::cout; using std::endl; using std::string; int main(int argc, char *argv[]) { string algorithm = "simple"; if (argc > 1) { algorithm = argv[1]; } if (algorithm == "simple") { cout << "You selected the \"simple\" algorithm.\n"; } else { cout << "The algorithm \"" << algorithm << "\" is not known.\n"; return 1; } Identiconpp identicon(5, 5, 0xffffffff, { 0x000000ff, 0x000000 }); identicon.generate("testtest", Identiconpp::identicon_type::simple); return 0; }