Monday, 3 October 2016

how to create a 3d animation in C language

HOW TO CREATE A 3D ANIMATION IN C LANGUAGE

Hello friends we always want to do something new so that we can improve ourselves in every field of our lives.
Here i have created a program of 3d animation in C language .I have used turbo C++ compiler for this and also recommend you to use if you are running this program.Its ouput is pretty much cool and you can customize it your own so enjoy it....
Here is the code.....
ALSO SEE:TYPING GAME PROJECT IN C


#include<conio.h>
#include<stdio.h>
#include<graphics.h>
void happy();
int main()
   {
happy();
return 0;
}
void happy()
{
int x,y, gd = DETECT, gm;
     char arr[]="HAPPY TEACHER'S DAY 2016",arr1[]="They say that...'Experience is the best teacher'";
     int i;
     initgraph(&gd,&gm,"c:\\tc\\bgi");//used to initialised the graphics
     settextstyle(SCRIPT_FONT,HORIZ_DIR,3);//used to change the text style and size
    setcolor(4); // used to set the color of the output text
     outtextxy(50,170,arr1);  //used to print msg at the given position cursor
     outtextxy(50,190,"But for us...");
     outtextxy(50,210,"Having you as our teacher is the best experience!");
     settextstyle(TRIPLEX_FONT,HORIZ_DIR,1);
     setcolor(GREEN);
outtextxy(300,350,"Created By :: Shashi Kumar");
settextstyle(TRIPLEX_FONT,HORIZ_DIR,5);
     while(!kbhit())
{
     for(i=100;i<110;i++)
     {
outtextxy(50,i,arr);
setcolor(i);
delay(200); // pause the program
     }
}       getch();
     
system("cls");  // substitution for CLRSCR();
closegraph();
}
ALSO SEE::HOW TO CHANGE THE BACKGROUND COLOR OF TURBO C++ EDITOR'S BACKGROUND

No comments:

Post a Comment