nyancat

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.inz.fi/nyancat
Log | Files | Refs | README

commit 91955c57b52bb619ecd3894eaa663fd49da0a181
parent 40f1336b51cb6804cd3981eda56354317a973258
Author: Santtu Lakkala <inz@inz.fi>
Date:   Mon, 20 Jul 2020 22:53:07 +0300

Re-fix 256-color

Diffstat:
Mnyancat.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nyancat.c b/nyancat.c @@ -366,8 +366,8 @@ static inline int _index256(uint32_t col) if (gs > 23 || absd(cr * 40 + !!cr * 55, r) + - absd(cg * 40 + !!cg * 55, g) + - absd(cb + 40 + !!cb * 55, b) <= + absd(cg * 40 + !!cr * 55, g) + + absd(cb * 40 + !!cr * 55, b) <= absd(0xee - 10 * gs, r) + absd(0xee - 10 * gs, g) + absd(0xee - 10 * gs, b))