My Profile
Active Members
TodayLast 7 Days
more...
Awards & Gifts
Online Exams
Fresher Jobs
Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian
cities including Bangalore, Chennai, Hyderabad, Pune or Kochi
Resources
Find educational articles, blogs, discussion threads and other resources.
Colleges
Find details about any college in India or search for courses.
|
Resources » Articles/Knowledge Sharing » Computer & Technology »
Small Animation program
|
#include"Stdio.h" #include"conio.h" #include"graphics.h" #include"alloc.h" void main() { int x,y,i,j,area; char *ch; int gd=DETECT,gm; initgraph(&gd,&gm,"c:\\tc\\bgi"); cleardevice(); setfillstyle(1,RED); circle(40,40,25); floodfill(45,45,WHITE); area=imagesize(15,15,65,65); ch=(char *)malloc(area); getimage(15,15,65,65,ch); y=40; // putimage(x,y,ch,XOR_PUT); cleardevice(); for(x=40;x<=500;) { putimage(x,y,ch,COPY_PUT); delay(100); // putimage(x,y,ch,COPY_PUT); x+=5;
} getch(); }
|
Responses
|
| Author: Lenin 05 Jun 2008 | Member Level: Diamond Points : 2 | interesting article , buddy , continue to contribute more. wishing gud future in ISC . Always honesty pays Think different WINNERS DO NOT DO DIFFERENT THINGS, BUT THEY DO THINGS DIFFERENTLY Always encourage the new mwmbers ..that is the energydrink for them ..me too
|
|
Advertise Here
Watch TV Channels
|