From f8916798843cdac73ae33db87d7ccb0bfbc088f7 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 27 Dec 2018 23:23:24 +0100 Subject: [PATCH] Fixed algorithm descriptions in readme. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 393eb57..3f52409 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ and you are welcome to redistribute it under certain conditions. * Use bits from digest to determine if a pixel is painted(1) or not(0). * Mirror the pixels vertically. * Use the following bits to pick the foreground color. - * You need `log2(n_colors) + 1` bits. + * You need `floor(log2(n_colors)) + 1` bits. * Scale image proportionally to requested width. ```PLAIN @@ -140,7 +140,7 @@ Implemented in [ltr_symmetric.cpp] * Pixels are drawn from left to right, top to bottom. * Use bits from digest to determine if a pixel is painted(1) or not(0). * Use the following bits to pick the foreground color. - * * You need `log2(n_colors) + 1` bits. + * * You need `floor(log2(n_colors)) + 1` bits. * Scale image proportionally to requested width. ```PLAIN