Unique way to wish Happy New year 2022 text Animation in C language...

A unique way to wish Happy New year 2022 text Animation in C language...


New  Happy new year 2023 video realse 
and source code given in telegram in zip format
video link:- https://youtube.com/shorts/0XF6beLuXaY?feature=share


process:-
  1. copy the below source code make 
  2. HappyNEWyear2022.txt file contain is given below, just make a txt file copy the content..
  3. Happy New year 2022.....


Source Code



#include<stdio.h> 
#include<stdlib.h> 
#include<string.h> 
#define RED "\033[31m"
#define GREEN "\033[32m"
#define YELLOW "\033[33m"
#define BLUE "\033[34m"
#define MAGENTA "\033[35m"
#define CYAN "\033[36m"

// For Delay Read the code from txt

void delay()
{
    for (int i = 0; i < 10000; i++)
    {
        for (int j = 0; j < 100; j++)
        {
        }
    }
}

// For Color
void color()
{
    int i = 0;
    while (i < 100)
    {
        system("COLOR E");
        system("COLOR 5");
        system("COLOR C");
        system("COLOR 9");
    }
}

int main()
{
    const char *colors[] = {RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN};
    
    FILE *ptr;
    char c;
    ptr = fopen("HappyNEWyear2022.txt", "r");
    c = fgetc(ptr);
   
  
    while (c != EOF)
    {
        delay();
        printf("%c%s", c, colors[rand() % 6]);
        c = fgetc(ptr);
    }
     color();
    return 0;
}
     

Txt file Contain:-

                                   
                                        
                                        Wishing you and yours health and prosperity in the new year                              
                                                                   **   **
                                                                  **********
                                                                  **********
                                                                   ********
                                                                     ****
                                                                      **                         
            ***************************************************************************************************************************    
            *                                                                                                                         *
            *     ****        ****                                                                                                    *
            *     ****        ****                                                                                                    *
            *     ****        ****                                                                                                    *
            *     ****************                                                                                                    *
            *     ****************        **         *****    *****   **    **                                                        *
            *     ****        ****       *   *       **   *   **   *   **  **                                                         *
            *     ****        ****      *******      *****    *****      ***                                                          *
            *     ****        ****     *        *    **       **          **                                                          *
            *     ****        ****    *          *   **       **          **                                                          *
            *                                                                                                                         *
            *                                                                                                                         *
            *     ***        ***                                                                                                      *
            *     **  *      **    *******   ***                     ***             ***     *** *******       *         *******      *
            *     **   *     **    *          **                    **                **    **   *            *  *        *     *     *
            *     **    *    **    *           **        *         **                  **  **    *           *    *       *      *    *
            *     **     *   **    ******       **      *  *      **                    ****     ******     *      *      * ** *      *
            *     **      *  **    *             **    *    *    **                      **      *         **********     *  *        *
            *     **       * **    *              **  *      *  **                       **      *        *          *    *   *       *
            *    ***         **    *******         ***        ***                        **      ******* *            *   *    ****   *
            *                                                                                                                         *
            *                                                                                                                         *
            *         ** ***             *****           ** ***             ** ***                                                    *
            *        **     **          *      *       **     **         **       **                                                  *
            *       **      **         *        *     **       **       **        **                                                  *
            *               **         *        *              **                 **                                                  *
            *              **          *        *             **                 **                                                   *
            *             **            *      *             **                 **                                                    *
            *            **               *****             **                 **                                                     *
            *          ************                       ************       ***********                                              *
            *                                                                                                                         *
            *                                                                                                                         *
           ***************************************************************************************************************************
Previous Post Next Post