Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- int main()
- {
- while(1)
- {
- system("clear");
- srand(time(NULL));
- int colorgen = rand() % 4;
- int colors[] = {9,4,13,226};
- printf("\e[38;5;226m * \n");
- printf("\e[38;5;34m *** \n");
- printf("\e[38;5;34m ***\e[38;5;%dm*\e[38;5;34m* \n", colors[colorgen]);
- printf("\e[38;5;34m *\e[38;5;%d*\e[38;5;34m****** \n", colors[colorgen]);
- printf("\e[38;5;34m ****\e[38;5;%dm*\e[38;5;34m****\n", colors[colorgen]);
- printf("\e[38;5;34m**\e[38;5;%dm*\e[38;5;34m*****\e[38;5;%dm*\e[38;5;34m**\n", colors[colorgen], colors[colorgen]);
- printf(" \e[38;5;94m║ \n");
- printf(" \e[38;5;94m║ \n");
- system("sleep 1");
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment