diff --git a/rbtext.c b/rbtext.c index c4c4215..5026b74 100644 --- a/rbtext.c +++ b/rbtext.c @@ -16,7 +16,7 @@ I DON'T CARE HOW YOU USE OR CONFIGURE THIS PROGRAM. // How many milliseconds the program will wait until the next print ( DEFAULT = 100 ) #define CONF_SLEEP_TIMEMS 100 // How many times a color should be shown before switching to the next ( DEFAULT = 2 ) -#define COLOR_SKIP 2 +#define CONF_COLOR_LAG 2 // BEWARE RICERS // If you add extra colors make sure to @@ -48,7 +48,7 @@ unsigned long long t = 0; void genColors(char *s) { char *cstr = malloc(20 * sizeof(char)); for (int i = 0; i < strlen(s); i++) { - enum color c = (((t + i) / COLOR_SKIP) % COLORS); + enum color c = (((t + i) / CONF_COLOR_LAG) % COLORS); switch (c) { //addcase(enum value, #define name) @@ -74,7 +74,7 @@ int main(int carg, char **varg) { char *text = malloc(1024 * sizeof(char)); - // Similar to pythons str.join() method + // Similar to pythons str.join(' ') method // Adds all the arguments together with spaces seperating them // EG: ./rbtext hello world > "hello world" for (int i = 1, j = 0; i < carg; i++) { @@ -96,4 +96,4 @@ int main(int carg, char **varg) { } return 0; -} \ No newline at end of file +}