Professional Documents
Culture Documents
22/02/12 17:21
Compartilhar
Denunciar abuso
Prximo blog
Criar um blog
Login
C Programming
SUNDAY, JUNE 7, 2009
clock
http://code-heaven.blogspot.com/search?updated-max=2009-09-19T04:32:00-07:00&max-results=4
Labels
Animation (1)
Bezier Curve Drawing Algorithm
(1)
Boundary Fill Algorithm (1)
Bresenham Circle Drawing
algorithm (1)
Bresenham line drawing
algorithm (1)
C++ (1)
C++ program to make a pie chart
(1)
Calender (1)
Character Generation (1)
Cohen Sutherland Line Clipping
Algorithm (1)
Digital Differential Analyzer Line
drawing algorithm (1)
Flood Fill Algorithm (1)
Install Turbo C (1)
Liang Barsky Line Clipping
Algorithm (1)
Mid-Point Ellipse Drawing
Pgina 1 de 9
C Programming
22/02/12 17:21
Algorithm (1)
new folder.exe (1)
regsvr.exe (1)
detectgraph(&gd,&gm);
initgraph(&gd,&gm, "c:\\tc\\bgi");
ymax = getmaxy();
Rotation (2)
Scaling (2)
Scan Line (1)
Translation (2)
Advertise on
this site
Powered By
AdBrite
}
x1=(int) b[0][7]; y1=(int) b[1][7];
x2=(int) b[0][4]; y2=(int) b[1][4];
line( x1,ymax-y1,x2,ymax-y2);
setcolor(13);
for(i=0;i<4;i++)
{
x1=(int) b[0][i]; y1=(int) b[1][i];
x2=(int) b[0][4+i]; y2=(int) b[1][4+i];
line( x1,ymax-y1,x2,ymax-y2);
}
Your Ad Here
getch(); getch();
http://code-heaven.blogspot.com/search?updated-max=2009-09-19T04:32:00-07:00&max-results=4
Pgina 2 de 9
C Programming
22/02/12 17:21
About Me
Angad
MUMBAI,
Maharashtra,
India
detectgraph(&gd,&gm);
initgraph(&gd,&gm, "c:\\tc\\bgi");
ymax = getmaxy();
xp = 300; yp = 320; zp = 100;
for(j=0; j<8; j++)
{
x = a[0][j]; y = a[1][j]; z = a[2][j];
b[0][j] = xp - ( (float)( x - xp )/(z - zp)) * (zp);
b[1][j] = yp - ( (float)( y - yp )/(z - zp)) * (zp);
}
/*- front plane display -*/
for(j=0;j<3;j++)
http://code-heaven.blogspot.com/search?updated-max=2009-09-19T04:32:00-07:00&max-results=4
Pgina 3 de 9
C Programming
22/02/12 17:21
{
x1=(int) b[0][j]; y1=(int) b[1][j];
x2=(int) b[0][j+1]; y2=(int) b[1][j+1];
line( x1,ymax-y1,x2,ymax-y2);
}
x1=(int) b[0][3]; y1=(int) b[1][3];
x2=(int) b[0][0]; y2=(int) b[1][0];
line( x1, ymax-y1, x2, ymax-y2);
/*- back plane display -*/
setcolor(11);
for(j=4;j<7;j++)
{
x1=(int) b[0][j]; y1=(int) b[1][j];
x2=(int) b[0][j+1]; y2=(int) b[1][j+1];
line( x1, ymax-y1, x2, ymax-y2);
}
x1=(int) b[0][7]; y1=(int) b[1][7];
x2=(int) b[0][4]; y2=(int) b[1][4];
line( x1, ymax-y1, x2, ymax-y2);
setcolor(7);
for(i=0;i<4;i++)
{
x1=(int) b[0][i]; y1=(int) b[1][i];
x2=(int) b[0][4+i]; y2=(int) b[1][4+i];
line( x1, ymax-y1, x2, ymax-y2);
}
getch(); getch();
}
Installing TURBO C
All My programs can be compiled using the turbo C complier.The
following tutorial is for installation of Turbo C on your computer.
Step 1> Copy the code for the program to notepad and save the file
with a ".c" extension (for c code) & ".c++" extension (for c++ code).
Step 2> Download the compiler from the above link and save the file.
Step 3> Open the file tc3.zip, find INSTALL.exe from its contents and
double click to open it.
http://code-heaven.blogspot.com/search?updated-max=2009-09-19T04:32:00-07:00&max-results=4
Pgina 4 de 9
C Programming
22/02/12 17:21
Step 5> Enter the drive letter you want to install turbo c on and press
ENTER.
http://code-heaven.blogspot.com/search?updated-max=2009-09-19T04:32:00-07:00&max-results=4
Pgina 5 de 9
C Programming
22/02/12 17:21
Step 6> Now on thw following screen type the source path or press
ENTER to select the default path.
Step 7> After this just press F9 on the screen that follows to continue
installation.
http://code-heaven.blogspot.com/search?updated-max=2009-09-19T04:32:00-07:00&max-results=4
Pgina 6 de 9
C Programming
22/02/12 17:21
Pgina 7 de 9
C Programming
22/02/12 17:21
Pgina 8 de 9
C Programming
22/02/12 17:21
line(319,i,319,i-120);
line(320,i,320,i-120);
rectangle(320,i-120,330,i-100);
setcolor(YELLOW);
circle(325,i-100,2);
delay(25);
}
cleardevice();
kk=0;
for(j=100;j<350;j++)
{
if(j%20==0)
{
setcolor(kk);
kk=kk+3;
delay(50);
}
ellipse(320,30,0,360,j+100,j+0);
}
for(j=100;j<350;j++)
{
if(j%20==0)
{
setcolor(BLACK);
delay(2);
}
ellipse(320,30,0,360,j+100,j+0);
}
cleardevice();
for(i=0;i<70;i++)
{
setcolor(i);
settextstyle(GOTHIC_FONT,HORIZ_DIR,6);
outtextxy(110,150,"HAPPY NEWYEAR");
delay(90);
}
getch();
}
Labels: Animation
12 comments
Home
Older Posts
http://code-heaven.blogspot.com/search?updated-max=2009-09-19T04:32:00-07:00&max-results=4
Pgina 9 de 9