Home   Easy-Code    Forum  Updater 
Twitter Facebook



Taj mahal using c graphics

Critics Rating:

Users Rating:



          /* TAJ MAHAL */



#include <graphics.h>

#include <stdio.h>

#include <stdlib.h>

main()

{

   int gd=0,gm,i,j,k,l,x;

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

   while(!kbhit())

   {

   setcolor(random(15));

   line(20,340,460,340);

   line(20,340,20,360);

   line(20,360,40,360);

   line(40,360,40,340);

   line(460,340,460,360);

setcolor(random(15));

   line(460,360,440,360);

   line(440,360,440,340);

   line(100,340,100,230);

   line(180,340,180,200);

   line(300,340,300,200);

   line(380,340,380,230);

   line(170,240,170,210);

   line(170,210,140,210);

   line(140,210,140,240);

   line(180,240,130,240);

   line(130,240,130,220);

   line(120,240,120,220);

   line(125,214,120,220);

   line(125,214,130,220);

   arc(155,210,0,180,10);

   line(156,170,156,194);

setcolor(random(15));

   line(156,194,152,200);

   line(156,194,160,200);

   line(144,214,144,236);

   line(144,236,152,236);

   line(152,236,152,214);

   line(144,214,152,214);

   line(158,236,158,214);

   line(158,214,166,214);

   line(166,214,166,236);

   line(166,236,158,236);

   line(156,214,156,236);

   line(156,236,162,236);

   line(162,236,162,214);

   line(162,214,156,214);

   line(120,240,110,240);

   line(110,240,110,230);

setcolor(random(15));

   line(105,220,100,230);

   line(105,220,110,230);

   line(110,330,110,250);

   line(110,250,136,250);

   line(136,250,136,330);

   line(136,330,110,330);

   line(144,330,144,250);

   line(144,250,170,250);

   line(170,250,170,330);

   line(144,330,170,330);

   line(114,280,132,280);

   line(114,280,114,260);

   line(132,280,132,260);

   arc(123,260,0,180,9);

   line(115,280,115,260);

   line(116,280,116,260);

setcolor(random(15));

   line(114,320,132,320);

   line(132,320,132,300);

   line(114,320,114,300);

   arc(123,300,0,180,9);

   arc(123,300,0,180,8);

   line(151,320,151,300);

   line(157,294,149,300);

   line(157,294,150,300);

   line(157,294,151,300);

   line(115,320,115,300);

   line(116,320,116,300);

   line(117,320,117,300);

   line(148,280,148,260);

   line(148,280,166,280);

   line(166,280,166,260);

   line(157,254,148,260);

setcolor(random(15));

   line(157,254,166,260);

   line(149,280,149,260);

   line(150,280,150,260);

   line(151,280,151,260);

   line(157,254,149,280);

   line(157,254,150,280);

   line(157,254,151,280);

   line(152,280,152,260);

   line(157,254,152,280);

   line(148,320,166,320);

   line(148,320,148,300);

   line(166,320,166,300);

   line(157,294,148,300);

   line(157,294,166,300);

   line(149,320,149,300);

   line(150,320,150,300);

setcolor(random(15));

   line(300,240,350,240);

   line(355,214,350,220);

   line(360,220,360,240);

   line(350,220,350,240);

   line(355,214,360,220);

   line(360,240,370,240);

   line(370,240,370,230);

   line(375,220,370,230);

   line(375,220,380,230);

   line(310,240,310,210);

   line(340,240,340,210);

   line(310,210,340,210);

   arc(325,210,0,180,10);

   line(325,170,325,194);

   line(325,194,320,200);

   line(325,194,330,200);

setcolor(random(15));

   line(314,236,314,214);

   line(314,214,322,214);

   line(322,214,322,236);

   line(322,236,314,236);

   line(328,236,328,214);

   line(328,214,336,214);

   line(336,214,336,236);

   line(336,236,328,236);

   line(336,250,310,250);

   line(310,250,310,330);

   line(336,330,336,250);

   line(334,280,314,280);

   line(314,280,314,260);

   line(323,254,314,260);

   line(323,254,332,260);

   line(315,280,315,260);

setcolor(random(15));

   line(316,280,316,260);

   line(317,280,317,260);

   line(323,256,315,260);

   line(323,256,316,260);

   line(323,256,317,260);

   line(336,330,336,250);

   line(318,280,318,260);

   line(323,256,318,260);

   line(332,320,314,320);

   line(314,320,314,300);

   line(332,320,332,300);

   line(323,292,314,300);

   line(323,292,332,300);

   line(315,320,315,300);

   line(323,292,315,300);

   line(316,320,316,300);

setcolor(random(15));

   line(323,292,316,300);

   line(317,320,317,300);

   line(323,292,317,300);

   line(318,320,318,300);

   line(323,292,318,300);

   line(370,330,344,330);

   line(370,330,370,250);

   line(370,250,344,250);

   line(344,250,344,330);

   line(348,280,348,260);

   line(366,280,366,260);

   arc(357,260,0,180,9);

   line(349,280,349,260);

   line(350,280,350,260);

   line(351,280,351,260);

   line(352,280,352,260);

setcolor(random(15));

   line(366,320,348,320);

   line(348,320,348,300);

   line(366,320,366,300);

   line(349,320,349,300);

   line(350,320,350,300);

   line(351,320,351,300);

   arc(357,300,0,180,9);

   arc(357,300,0,180,8);

   arc(357,300,0,180,7);

   line(190,340,190,220);

   line(190,220,290,220);

   line(290,220,290,340);

   line(200,340,200,230);

   line(200,230,280,230);

   line(280,230,280,340);

   line(192,340,192,222);

setcolor(random(15));

   line(192,222,288,222);

   line(288,220,288,340);

   line(194,340,194,224);

   line(194,224,286,224);

   line(286,224,286,340);

   line(196,340,196,226);

   line(196,226,284,226);

   line(284,226,284,340);

   line(198,340,198,228);

   line(198,228,284,228);

   line(284,228,284,340);

   line(182,340,182,216);

   line(182,216,298,216);

   line(298,216,298,340);

   line(184,340,184,218);

   line(184,218,294,218);

setcolor(random(15));

   line(296,218,296,340);

   line(210,340,210,240);

   line(210,240,270,240);

   line(270,240,270,340);

   line(220,340,220,250);

   line(220,250,260,250);

   line(260,250,260,340);

   line(212,340,212,242);

   line(212,242,268,242);

   line(268,242,268,340);

   line(214,340,214,244);

   line(214,244,266,244);

   line(266,244,266,340);

   line(333,280,333,260);

   line(348,280,366,280);

   line(310,330,335,330);

setcolor(random(15));

   arc(240,200,0,180,60);

   line(240,130,230,140);

   line(240,130,250,140);

   line(240,130,240,100);

   line(180,190,200,210);

   line(200,210,280,210);

   line(280,210,300,190);

   line(20,340,70,300);

   line(70,300,100,300);

   line(460,340,410,300);

   line(410,300,380,300);

   }

}



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.