Browse Source

Remove white entirely

master
MasterOfTheSoftware 1 month ago
parent
commit
043d583fd8
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      rccat.c

+ 2
- 2
rccat.c View File

@@ -13,7 +13,7 @@
#define KCYN "\x1B[36m"
#define KWHT "\x1B[37m"

const char *colors[8] = {KWHT, KNRM, KRED, KGRN, KYEL, KBLU, KMAG, KCYN};
const char *colors[7] = {KNRM, KRED, KGRN, KYEL, KBLU, KMAG, KCYN};

int lastcolor = 0;
void printColors(char *text)
@@ -28,7 +28,7 @@ void printColors(char *text)
for (int i = 0; i < strlen(text); ++i) {
int color = 0;
do {
color = rand() % 7;
color = rand() % 6;
} while (color == lastcolor);
lastcolor = color;
printf("%s%c", colors[color], text[i]);

Loading…
Cancel
Save