Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ASCII art et code source par Skalefou.
- #include <stdio.h>
- #include <windows.h>
- void color(int couleurDuTexte,int couleurDeFond);
- int main(int argc, char **argv)
- {
- int i = 0;
- while(1) //5
- {
- i++;
- color(i, 0);
- printf(" _______ /%c /%c _______\n", 92, 92);
- printf(" / | | | %c / %c / %c / | | | %c \n", 92, 92, 92, 92);
- printf(" | | / %c_________________/ %c | |\n", 92, 92);
- printf(" | | | ____ ____ | | |\n");
- printf(" | | | / /%c %c / /%c %c | | |\n", 92, 92, 92, 92);
- printf(" | | | %c_%c/_/ %c_%c/_/ | | |\n", 92, 92, 92, 92);
- printf(" | | | | | |\n");
- printf(" | | | /%c | | |\n", 92);
- printf(" | |_/ %c_| |", 92);
- Sleep(500);
- system("cls");
- if(i == 15)
- {
- i = 0;
- }
- }
- return 0;
- }
- void color(int couleurDuTexte,int couleurDeFond) // fonction d'affichage de couleurs
- {
- HANDLE H=GetStdHandle(STD_OUTPUT_HANDLE);
- SetConsoleTextAttribute(H,couleurDeFond*16+couleurDuTexte);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement