TEXT ANIMATION PROGRAM IN C
TEXT ANIMATION PROGRAM IN C
Similar Programs
- Flood Fill program in C
- Triangle Rotation Program
- Text animation program in C
- C program for fixed point scaling and rotation
- C Program for shearing of triangle, line and rectangle
- C program to plot different types of lines
- Scaling program in C
- Font animation program in C
- Midpoint ellipse drawing program in C
- Circle Midpoint program in C
- Translation program in C
- Bresenhem Circle drawing program in C
- String Generation program in C
- Bresenhem Line drawing program in C
- Plotting a pixel in C
- DDA line drawing program in C
- Boundary fill program in C
- Character Generation program in C
- Triangle Rotation program in C
//program for text animation//
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
int x1=600,y1=12,x2=100,y2=100;
int shape=1,ranc=1,ranp;
int gd = DETECT,gm;
initgraph(&gd,&gm,"\tc\bgi");
cleardevice();
for(;;x1++)
{
if(x1>=250)
{
ranc=random(600);
x1=0;
x2=0;
y1=getmaxx();
y2=getmaxy();
shape=(shape+1)%3;
}
setcolor(random(19));
outtextxy(150,175,"*AJEET* ");
outtextxy(640,480,"*#&@*");
//setcolor(yellow);
settextstyle(1,0,5);
outtextxy(177,250," *KHAN*");
x2++;
// y1__;
// y2__;
delay(100);
}
closegraph();
}