Home   Easy-Code    Forum  Updater 
Twitter Facebook



Saucer using c graphics

Critics Rating:

Users Rating:



          /* SAUCER */



#include <graphics.h>

#include <stdio.h>

#include <stdlib.h>

main()

{

int gd,gm,_,__,___;

clrscr();

detectgraph(&gd,&gm);

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

while(!kbhit()){

cleardevice();

for(_=1;_<=500;_+=1)

putpixel(random(640),random(500),15);

__=random(640);

___=random(200);

setcolor(15);

fillellipse(__,___,30,10);

for(_=1;_<=4;_++){

circle(__-20,___-20,_);

circle(__+20,___-20,_);

}

delay(2000);

}

getch();

}

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.