//___________ WELCOME ALL OF YOU ON ROHIT TECH STUDY CHANNEL ____________
/*...................... C PROGRAM TO DRAW GUN ..........................*/
#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<graphics.h>
void main()
{
int i,gd=DETECT,gm;
initgraph(&gd,&gm,"c://tc//bgi");
//______background color
setbkcolor(15);
//______Gun handle
setcolor(6);
arc(50,350,150,250,8);
line(47,358,100,358);
arc(100,350,250,10,8);
line(42,350,58,300);
delay(300);
arc(102,324,100,150,50);
line(90,275,125,275);
line(125,275,125,300);
arc(125,320,450,150,20);
ellipse(109,330,90,-90,3,20);
delay(500);
//bullets pack
setcolor(8);
arc(130,275,100,180,15);
line(127,260,135,260);
arc(175,260,100,180,40);
line(169,220,237,220);
arc(240,230,0,100,10);
delay(300);
line(250,230,250,255);
arc(234,252,270,0,16);
line(125,300,135,297);
arc(144,297,100,180,8);
line(142,290,220,290);
arc(215,270,290,0,20);
delay(500);
//tigger
arc(151,298,180,25,15);
arc(149,300,180,25,22);
ellipse(155,300,90,-90,5,8);
arc(155,299,130,-100,10);
delay(300);
//bullet
arc(169,255,90,270,26);
line(169,229,215,229);
line(215,229,215,281);
line(215,281,167,281);
line(167,281,167,229);
line(169,281,169,229);
delay(500);
ellipse(195,234,90,-90,15,5);
line(195,239,215,239);
delay(300);
ellipse(192,254,90,-90,13,6);
line(194,248,214,248);
line(194,260,214,260);
line(194,271,214,271);
ellipse(195,276,90,-90,15,5);
delay(500);
//gun lock
arc(155,239,90,180,15);
arc(130,239,0,100,10);
arc(128,241,0,100,10);
delay(300);
//gun pipe
setcolor(1);
line(250,242,350,242);
line(250,224,350,224);
line(250,247,345,247);
line(345,247,348,242);
delay(500);
ellipse(350,233,90,-90,1,8);
ellipse(350,233,-90,90,1,8);
line(340,223,350,220);
line(350,220,350,225);
delay(300);
setcolor(4);
settextstyle(7,0,2);
outtextxy(370,450,"-:-ROHIT TECH STUDY");
getch();
}
2 Comments
Txx bro
ReplyDeleteAlways i support you bro
ReplyDelete