Screen Saver Development In C language

SCREEN SAVER DEVELOPMENT IN C LANGUAGE


This is a basic program in c language given below which will make a simple screen saver whose screen will change its color with time.

First we design simple screen saver in c language then we will move to further for another screen saver designing.
This is a simple program in c language ( graphics ).  It will give output with blinking color screen again and again.
The program is as follow:

#include<iostream.h>
#include<conio.h>
#include<graphics.h>
Void main()
{
            int gdriver=DETECT, gdmode, errorcode;
            int style, midx, midy;
            initgraph(&gdriver, &gdmode, “”);
            cout<<”\n\n”;
            for( int i=0; i<16; i++)
            {          
                        Cout<<”\a”;
                        Setbkcolor(i);
                        If( i==15)
                        i=0;
                        settextstyle(TRIPLEX_FONT, HORIZ_DIR, 3);
                        moveto(0, getmaxy()/15);
                        outtext(“ RAW SOFTWARES”); //type your name or anything
                   settextstyle( DEFAULT_FONT, HORIZ_DIR, 2);
                        gotoxy(25, 10);
                        textcolor(i+1);
                        cout<<”KAILASH KUMAR”;
            }

            getch();
  }

Output screen will blink randomly by changing screen color.

See the video to see the output of the screen saver program
                                            

                                           https://youtu.be/vntcKB-7K9s




Comments

Popular posts from this blog

Installing MySQL(5.7) on MacOS (Monterey)