Home   Easy-Code    Forum  Updater 
Twitter Facebook



Circles using c graphics

Critics Rating:

Users Rating:



          /* CIRCLES */



#include <graphics.h>

#include <stdio.h>

#include <stdlib.h>

main()

{

int gd,gm,i,j;

clrscr();

detectgraph(&gd,&gm);

initgraph(&gd,&gm,"");

while(!kbhit()){

j=50;

for(i=1;i<=50;i++){

circle(200,200,1*i);

delay(300);

setcolor(random(15));

circle(400,200,1*j);

setcolor(random(15));

circle(150,150,1*i);

setcolor(random(15));

circle(300,350,1*j);

setcolor(random(15));

circle(200,200,1*i);

setcolor(random(15));

circle(100,450,1*j);

setcolor(random(15));

circle(500,100,1*i);

setcolor(random(15));

circle(400,400,1*j);

setcolor(random(15));

circle(50,300,1*i);

setcolor(random(15));

circle(500,280,1*j);

setcolor(random(15));

circle(450,50,1*i);

setcolor(random(15));

circle(300,100,1*j);

settextstyle(1,0,6);

outtextxy(200,240,"NIRAJAN");

j--;

}

}

}

Courtesy, Source, References & Regards: Kishore AVGK

While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright@2009-2011 by KuGuNi.com. All Rights Reserved.