C line project folders | in Graphics
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
int i,j;
initgraph(&gd,&gm,"");
setcolor(BLUE);
setfillstyle(SOLID_FILL,RED);
i=getmaxx();
j=getmaxy();
while(1)
{
if(kbhit())
{
break;
}
setfillstyle(SOLID_FILL,RED);
for(i=10,j=20;i<=300,j<=400;i+=5,j+=10)
{
outtextxy(i/2,j/2,"new projects") ;
circle(i,j,15);
fillellipse(i,j,15,15);
circle(i+100,j+150,15);
fillellipse(i+100,j+150,15,15);
circle(i+375,j,15);
fillellipse(i+375,j,15,15);
circle(i+50,j+300,15);
fillellipse(i+50,j+300,15,15);
circle(i+130,j+180,15);
fillellipse(i+130,j+180,15,15);
circle(i+190,j+200,15);
fillellipse(i+190,j+200,15,15);
circle(i+220,j,15);
fillellipse(i+220,j,15,15);
circle(i,j+220,15);
fillellipse(i,j+220,15,15);
circle(i+105,j+250,15);
fillellipse(i+105,j+250,15,15);
circle(i-30,j+600,15);
fillellipse(i-30,j+600,15,15);
circle(i-40,j+202,15);
fillellipse(i-40,j+202,15,15);
circle(i-60,j+100,15);
fillellipse(i-60,j+100,15,15);
circle(i+10,j+50,15);
fillellipse(i+10,j+50,15,15);
circle(i+75,j,15);
fillellipse(i+75,j,15,15);
circle(i+50,j+30,15);
fillellipse(i+50,j+30,15,15);
circle(i+35,j+80,15);
fillellipse(i+35,j+80,15,15);
delay(100);
clrscr();
}
setfillstyle(4,GREEN);
for(i=300,j=400;i>=30,j>=10;i-=5,j-=10)
outtextxy(i/2,j/2,"new projects'") ;
{
putpixel(200,200,GREEN);
circle(i,j,15);
fillellipse(i,j,15,15);
circle(i+150,j+100,15);
fillellipse(i+150,j+100,15,15);
circle(i+5,j+375,15);
fillellipse(i+5,j+375,15,15);
circle(i+300,j+50,15);
fillellipse(i+300,j+50,15,15);
circle(i+180,j+130,15);
fillellipse(i+180,j+130,15,15);
circle(i+290,j+200,15);
fillellipse(i+290,j+200,15,15);
circle(i,j+220,15);
fillellipse(i,j+220,15,15);
circle(i,j+120,15);
fillellipse(i,j+120,15,15);
circle(i+250,j+105,15);
fillellipse(i+250,j+105,15,15);
circle(i-30,j+600,15);
fillellipse(i-30,j+600,15,15);
circle(i-40,j,15);
fillellipse(i-40,j,15,15);
circle(i,j+75,15);
fillellipse(i,j+75,15,15);
circle(i+50,j+30,15);
fillellipse(i+50,j+30,15,15);
circle(i+350,j+30,15);
fillellipse(i+350,j+30,15,15);
delay(50);
clrscr();
}
setfillstyle(6,MAGENTA);
for(i=100,j=200;i<=300,j<=400;i+=5,j+=10)
{
outtextxy(i/2,j/2,"new projects") ;
circle(i,j,15);
fillellipse(i,j,15,15);
circle(i+100,j+150,15);
fillellipse(i+100,j+150,15,15);
circle(i+375,j,15);
fillellipse(i+375,j,15,15);
circle(i+50,j+300,15);
fillellipse(i+50,j+300,15,15);
circle(i+130,j+180,15);
fillellipse(i+130,j+180,15,15);
circle(i+190,j+200,15);
fillellipse(i+190,j+200,15,15);
circle(i+220,j,15);
fillellipse(i+220,j,15,15);
circle(i,j+220,15);
fillellipse(i,j+220,15,15);
circle(i+105,j+250,15);
fillellipse(i+105,j+250,15,15);
circle(i-30,j+600,15);
fillellipse(i-30,j+600,15,15);
circle(i-40,j+202,15);
fillellipse(i-40,j+202,15,15);
circle(i+10,j+50,15);
fillellipse(i+10,j+50,15,15);
circle(i+75,j,15);
fillellipse(i+75,j,15,15);
circle(i+50,j+30,15);
fillellipse(i+50,j+30,15,15);
circle(i+35,j+80,15);
fillellipse(i+35,j+80,15,15);
delay(100);
clrscr();
}
setfillstyle(SOLID_FILL,1);
for(i=400,j=600;i>=20,j>=30;i-=5,j-=10)
outtextxy(i/2,j/2,"new projects'") ;
{
putpixel(200,200,BLACK);
circle(i,j,15);
fillellipse(i,j,15,15);
circle(i+150,j+100,15);
fillellipse(i+150,j+100,15,15);
circle(i+5,j+375,15);
fillellipse(i+5,j+375,15,15);
circle(i+300,j+50,15);
fillellipse(i+300,j+50,15,15);
circle(i+180,j+130,15);
fillellipse(i+180,j+130,15,15);
circle(i+290,j+200,15);
fillellipse(i+290,j+200,15,15);
circle(i,j+220,15);
fillellipse(i,j+220,15,15);
circle(i,j+120,15);
fillellipse(i,j+120,15,15);
circle(i+250,j+105,15);
fillellipse(i+250,j+105,15,15);
circle(i-30,j+600,15);
fillellipse(i-30,j+600,15,15);
circle(i-40,j,15);
fillellipse(i-40,j,15,15);
circle(i,j+75,15);
fillellipse(i,j+75,15,15);
circle(i+50,j+30,15);
fillellipse(i+50,j+30,15,15);
circle(i+350,j+30,15);
fillellipse(i+350,j+30,15,15);
delay(100);
clrscr();
}
setfillstyle(8,9);
for(i=400,j=600;i>=30,j>=10;i-=5,j-=10)
{
outtextxy(i/2,j/2,"new projects") ;
putpixel(200,200,RED);
circle(i,j,15);
fillellipse(i,j,15,15);
circle(i+150,j+100,15);
fillellipse(i+150,j+100,15,15);
circle(i+5,j+375,15);
fillellipse(i+5,j+375,15,15);
circle(i+300,j+50,15);
fillellipse(i+300,j+50,15,15);
circle(i+180,j+130,15);
fillellipse(i+180,j+130,15,15);
circle(i+290,j+200,15);
fillellipse(i+290,j+200,15,15);
circle(i,j+220,15);
fillellipse(i,j+220,15,15);
circle(i,j+120,15);
fillellipse(i,j+120,15,15);
circle(i+250,j+105,15);
fillellipse(i+250,j+105,15,15);
circle(i-30,j+600,15);
fillellipse(i-30,j+600,15,15);
circle(i-40,j,15);
fillellipse(i-40,j,15,15);
circle(i,j+75,15);
fillellipse(i,j+75,15,15);
circle(i+50,j+30,15);
fillellipse(i+50,j+30,15,15);
circle(i+350,j+30,15);
fillellipse(i+350,j+30,15,15);
delay(100);
clrscr();
}
}
getch();
closegraph();
}
//end of C line project folders | in Graphics
0 comments: