Update Definitions

Signed-off-by: 0xf8 <0xf8.dev@proton.me>
This commit is contained in:
0xf8 2023-02-25 12:27:55 -05:00
parent e488536d0d
commit 73fd2724d6
Signed by: 0xf8
GPG Key ID: 446580D758689584

View File

@ -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 ) // How many milliseconds the program will wait until the next print ( DEFAULT = 100 )
#define CONF_SLEEP_TIMEMS 100 #define CONF_SLEEP_TIMEMS 100
// How many times a color should be shown before switching to the next ( DEFAULT = 2 ) // 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 // BEWARE RICERS
// If you add extra colors make sure to // If you add extra colors make sure to
@ -48,7 +48,7 @@ unsigned long long t = 0;
void genColors(char *s) { void genColors(char *s) {
char *cstr = malloc(20 * sizeof(char)); char *cstr = malloc(20 * sizeof(char));
for (int i = 0; i < strlen(s); i++) { 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) { switch (c) {
//addcase(enum value, #define name) //addcase(enum value, #define name)
@ -74,7 +74,7 @@ int main(int carg, char **varg) {
char *text = malloc(1024 * sizeof(char)); 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 // Adds all the arguments together with spaces seperating them
// EG: ./rbtext hello world > "hello world" // EG: ./rbtext hello world > "hello world"
for (int i = 1, j = 0; i < carg; i++) { for (int i = 1, j = 0; i < carg; i++) {
@ -96,4 +96,4 @@ int main(int carg, char **varg) {
} }
return 0; return 0;
} }