Home   Easy-Code    Forum  Updater 
Twitter Facebook



Car using c graphics

Critics Rating:

Users Rating:



          /* CAR */



#include <stdio.h>

#include <graphics.h>

#include <stdlib.h>

main()

{

int gd,gm,i;

clrscr();

gd=DETECT;

initgraph(&gd,&gm," ");

setcolor(random(7));

line(250,150,450,150);

delay(5000);

line(250,150,150,250);

delay(5000);

line(450,150,550,250);

delay(5000);

line(60,250,150,250);

delay(5000);

line(60,250,60,350);

delay(5000);

line(60,350,140,350);

delay(5000);

line(200,350,400,350);

delay(5000);

line(550,250,550,350);

delay(5000);

line(460,350,550,350);

delay(5000);

arc(170,350,0,180,28);

delay(5000);

arc(430,350,0,180,28);

delay(5000);

line(150,250,550,250);

delay(5000);

line(265,180,220,225);

delay(5000);

line(265,180,320,180);

delay(5000);

line(320,180,320,225);

delay(5000);

line(220,225,320,225);

delay(5000);

line(360,150,360,350);

delay(5000);

line(350,150,350,350);

delay(5000);

line(380,180,380,225);

delay(5000);

line(380,180,440,180);

delay(5000);

line(440,180,475,225);

delay(5000);

line(380,225,475,225);

delay(5000);

line(520,250,520,350);

delay(5000);

line(100,250,100,350);

delay(5000);

circle(80,270,5);

delay(5000);

circle(80,300,5);

delay(5000);

circle(80,330,5);

delay(5000);

outtextxy(320,260,"--");

delay(5000);

outtextxy(490,260,"--");

delay(5000);

rectangle(530,260,550,300);

delay(5000);

line(530,270,550,270);

delay(5000);

line(530,280,550,280);

delay(5000);

line(530,290,550,290);

delay(5000);

for(i=1;i<=23;i++)

{

delay(1000);

circle(170,350,1*i);

delay(1000);

circle(430,350,1*i);

}

delay(50000);

for(i=1;i<=50;i++)

{

settextstyle(1,0,1*i);

cleardevice();

outtextxy(0,10+5*i,"DESIGNED");

delay(1000);

}

for(i=1;i<=50;i++)

{

settextstyle(1,0,1*i);

cleardevice();

outtextxy(600-10*i,10+5*i,"BY");

delay(1000);

}

for(i=1;i<=50;i++)

{

settextstyle(1,0,1*i);

cleardevice();

outtextxy(1,10+5*i,"KISHOREAVGK");

delay(1000);

}

getch();

}

Courtesy, Source, References & Regards: Kishore AVGK

While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright@2009-2011 by KuGuNi.com. All Rights Reserved.