diff --git a/README.md b/README.md index 8a38b24..dc4db88 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ If something seems to be wrong, exceptions will be thrown. int main() { Identiconpp identicon(5, 5, Identiconpp::algorithm::ltr_symmetric, - "ffffff88", { "800000ff" }); + "ffffff80", { "800000ff" }, { 10, 10 }); Magick::Image img; img = identicon.generate("55502f40dc8b7c769880b10874abc9d0", 200); img.write("identicon.png"); diff --git a/src/identiconpp.hpp b/src/identiconpp.hpp index 559a9c8..7b73f2c 100644 --- a/src/identiconpp.hpp +++ b/src/identiconpp.hpp @@ -52,12 +52,12 @@ public: * image formats and sizes. The colors must consist of exactly 8 * digits. * - * @param rows Number of rows * @param columns Number of columns - * @param type The type of identicon + * @param rows Number of rows + * @param type The algorithm to use * @param background Background color, hexadecimal, rrggbbaa * @param foreground vector of foreground colors - * @param padding Padding { left & right, top & down } + * @param padding Padding in pixels { left & right, top & down } */ explicit Identiconpp(const uint8_t columns, const uint8_t rows, algorithm type = algorithm::ltr_symmetric, @@ -69,7 +69,7 @@ public: * @brief Generates identicon from digest. * * @param digest The pre-computed digest - * @param width The width of the image + * @param width The width of the image in pixels * * @return The image */