gif

read/write GIFs
git clone git://bvnf.space/gm.git
Log | Files | Refs | README

commit d686d9f1286ca2d88c0d226eb4d84168b5d179a2
parent dcb739a2a1f61d96d7f34daf691928d651da48ff
Author: phoebos <ben@bvnf.space>
Date:   Sat, 28 Aug 2021 11:53:54 +0100

colorize print_colortable with escape codes

Diffstat:
Mgif.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gif.c b/gif.c @@ -37,7 +37,7 @@ struct Gif { void print_colortable(struct Gif *g){ for (int i = 0; i < g->colortable_len; i++){ - printf("%d: (%02x,%02x,%02x)\n", i, g->colortable[i][0], g->colortable[i][1], g->colortable[i][2]); + printf("%d: \033[48;2;%d;%d;%dm(%02x;%02x;%02x)\033[0m\n", i, g->colortable[i][0], g->colortable[i][1], g->colortable[i][2], g->colortable[i][0], g->colortable[i][1], g->colortable[i][2]); } }