From eea72f897e570ba6319da4f572980726903df296 Mon Sep 17 00:00:00 2001 From: 0xf8 <0xf8.dev@proton.me> Date: Sat, 25 Feb 2023 12:27:56 -0500 Subject: [PATCH] Improvements Signed-off-by: 0xf8 <0xf8.dev@proton.me> --- README.md | 3 --- rbtext.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 49ae7a0..9958761 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,3 @@ OR ## install `install -m755 rbtext /usr/bin` - - -> Can't get any simpler diff --git a/rbtext.c b/rbtext.c index a980e57..81998a1 100644 --- a/rbtext.c +++ b/rbtext.c @@ -44,7 +44,7 @@ void genColors(char *s) { char *cstr = (char *)malloc(64 + 1); for (unsigned long i = 0; i < strlen(s); i++) { - unsigned long c = (((t + i) / CONF_COLOR_LAG) % COLORS_SIZE); + unsigned long c = ((t + i) / CONF_COLOR_LAG) % COLORS_SIZE; snprintf(cstr, 64, "\e[38;2;%sm", COLORS[c]); printf("%s%c\e[0m",cstr,s[i]); }