Animated moving car program : computer graphics in C

Today Friends I Want To Tell You How We Write a Simple Animated Moving Car Program Using Compu...



Today Friends I Want To Tell You How We Write a Simple Animated

Moving Car Program Using Computer Graphics in C...

Here is the source code for Animated Moving Car using graphics.h

header file...

Complied On :- Turbo C

Graphics Header File :- graphics.h

Used Pre-Defined Graphics Function :-

1. initgraph() :- Initializes the graphics system .

2. settextstyle() :- Style and Font of the Text .

3. rectangle() :- Draws a rectangle in graphics mode.

4.circle() :- Draws a circle in graphics mode.

5.setcolor() :- Set the specified Color in graphics mode.

6.delay() :- Delay of the Specified time.

7.closegraph() :- Shuts down the graphics system.

Save :- .c file (C Program)


#include<stdio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
int i ,j=0;
initgraph(&gd,&gm,"C:\\TC\\BGI");
settextstyle(GOTHIC_FONT,HORIZ_DIR,4);
getch();
i=0;
while(i<=420)
{
rectangle(150+i,350,200+i,400);
rectangle(50+i,275,150+i,400);
circle(175+i,410,10);
circle(75+i,410,10);
setcolor(j++);
delay(100);
i=i+10;
cleardevice();
}
getch();
closegraph();
}


Thank You Keep visiting
Name

android facebook free-zone Freebies hacking How-to programming scripts video whatsapp
false
ltr
item
Mr Tricks: Animated moving car program : computer graphics in C
Animated moving car program : computer graphics in C
http://4.bp.blogspot.com/-OaLvV4TQMEg/VJlxZB2LdNI/AAAAAAAAAqY/Kc1j5Ql1eYM/s1600/car.jpg
http://4.bp.blogspot.com/-OaLvV4TQMEg/VJlxZB2LdNI/AAAAAAAAAqY/Kc1j5Ql1eYM/s72-c/car.jpg
Mr Tricks
http://mr-tricks.blogspot.com/2014/12/animated-moving-car-program-computer.html
http://mr-tricks.blogspot.com/
http://mr-tricks.blogspot.com/
http://mr-tricks.blogspot.com/2014/12/animated-moving-car-program-computer.html
true
248440411475805434
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy