Search This Blog

How to impress anyone using c Graphics l how to print i love You in Turbo c++




 

#include <graphics.h>

#include <dos.h>

void main()

{

int gd=DETECT,gm,i,j=0,k=4;

initgraph(&gd,&gm,"c:\\TURBOC3\\BGI");

settextstyle(1,HORIZ_DIR,4);

for(i=0;i<=500;i=i+5)

{

 outtextxy(0+i,250,"Big");

 outtextxy(500-i,250,"True");

 if(i==250)

 {cleardevice();

 break;

 }

 delay(200);

 cleardevice();

 }

  for(i=0;i<=80;i=i+4)

{

setcolor(4);

outtextxy(300-i,300-i,".");

outtextxy(300+i,300-i,".");

delay(200);

}

for(i=0;i<=40;i=i+4)

{

outtextxy(220,220-i,".");

outtextxy(380,220-i,".");

delay(200);

}

for(i=0;i<=20;i=i+4)

{

 outtextxy(220+i,180-i,".");

 outtextxy(380-i,180-i,".");

 delay(200);

}

 for(i=0;i<=20;i=i+4)

{

 outtextxy(240+i,160,".");

 outtextxy(360-i,160,".");

 delay(200);

}

 for(i=0;i<=40;i=i+4)

{

 outtextxy(260+i,160+i,".");

 outtextxy(340-i,160+i,".");

 delay(200);

}

for(i=0;i<=250;i=i+4)

{  setcolor(15);

 outtextxy(210+i,350-i,".");

 delay(200);

}

for(i=0;i<=20;i=i+6,j=j+2,k=k+6)

{

outtextxy(460-i,100-j,".");

outtextxy(460-j,100+k,".");

 }

    setcolor(5);

 for(i=10;i<=50;i=i+4)

 {

   outtextxy(10,350+i,".");

   delay(200);

  }

     setcolor(7);

    for(i=10;i<=50;i=i+4)

 {

   outtextxy(150,350+i,".");

   delay(200);

  }

     for(i=0;i<=50;i=i+4)

 {

   outtextxy(150+i,400,".");

   delay(200);

  }

     setcolor(8);

      for(i=10;i<=50;i=i+4)

 {

   outtextxy(250,350+i,".");

   delay(200);

  }

     for(i=0;i<=50;i=i+4)

 {

   outtextxy(250+i,400,".");

   delay(200);

  }

     for(i=0;i<48;i=i+4)

 {

   outtextxy(300,400-i,".");

   delay(200);

  }


      setcolor(6);


for(i=0;i<48;i=i+4)

 {

   outtextxy(400-i,400-i,".");

   outtextxy(400+i,400-i,".");

   delay(200);

  }

    setcolor(3);

      for(i=10;i<=50;i=i+4)

 {

   outtextxy(570,350+i,".");

   delay(200);

  }

     for(i=0;i<=50;i=i+4)

 {

   outtextxy(570+i,400,".");

   delay(200);

  }

     for(i=0;i<48;i=i+4)

 {

   outtextxy(620,400-i,".");

   delay(200);

  }

  cleardevice();

 settextstyle(1,HORIZ_DIR,7);

   outtextxy(220,200,"Bigtrue ");


 getch();

 closegraph();

}



Share this article :

0 comments:

Post a Comment