Make kabir singh face using c or c++
Computer graphics program coding.
Student project
Hello guys today i will tell you how to create kabir singh face in computer grapics using c++ or c. This project made by spartan akka spandan dongre from raisoni collage . So lets start the coding.
Coding :
Student project
Hello guys today i will tell you how to create kabir singh face in computer grapics using c++ or c. This project made by spartan akka spandan dongre from raisoni collage . So lets start the coding.
Coding :
#include<graphics.h>
#include<conio.h>
#include<dos.h>
#include<stdio.h>
void floodfill(int x,int y,int oldcolor,int newcolor)
{
if(getpixel(x,y)==oldcolor)
{
putpixel(x,y,newcolor);
{
floodfill(x+1,y,oldcolor,newcolor);
floodfill(x,y+1,oldcolor,newcolor);
floodfill(x-1,y,oldcolor,newcolor);
floodfill(x,y-1,oldcolor,newcolor);
floodfill(x+1,y+1,oldcolor,newcolor);
floodfill(x-1,y-1,oldcolor,newcolor);
floodfill(x+1,y-1,oldcolor,newcolor);
floodfill(x-1,y+1,oldcolor,newcolor);
}
}
}
int main()
{
clrscr();
int gd=DETECT,gm;
initgraph(&gd,&gd,"C:\\TC\\BGI");
line(300,250,290,245);
line(300,250,310,245);
line(310,245,360,260);
line(290,245,240,260);
line(300,270,296,273);
line(300,270,304,273);
line(296,273,260,278);
line(304,273,330,275);
line(330,275,350,290);
line(260,278,258,297);
line(258,297,270,310);
line(270,310,273,303);
line(273,303,270,300);
line(270,300,272,297);
line(272,297,280,300);
line(280,300,320,300);
line(320,300,330,294);
line(330,294,332,297);
line(332,297,328,301);
line(328,301,330,310);
line(330,310,337,310);
line(337,310,350,290);
line(240,260,208,235);
line(360,260,390,237);
ellipse(300,193,0,180,10,10); //chashma
ellipse(300,190,0,180,15,15);
line(285,190,270,175);
line(315,190,330,175);
line(270,175,230,174);
line(330,175,370,172);
line(230,174,220,180);
line(370,172,380,176);
line(380,176,382,195); //vimp
line(220,180,218,195); //vimp
line(382,195,394,195); //support of specs
line(218,195,206,195); //support of specs
line(206,200,218,200);
line(394,200,382,200);
line(394,195,400,192);
line(394,200,400,197);
line(400,192,390,162);
line(390,162,370,130);
line(370,130,355,110);
line(215,176,210,138);
line(210,138,230,107);
line(206,200,208,235);
line(400,197,390,237);
line(218,200,222,220);
line(382,200,378,220);
line(222,220,260,221);
line(378,220,340,221);
line(286,210,290,193);
line(314,210,310,193);
line(286,210,260,221);
line(340,221,314,210);
line(206,195,207,170);
line(207,170,215,176);
line(275,370,330,365);
line(330,365,348,355);
line(348,355,370,320);
line(370,320,377,320);
line(377,320,415,280);
line(415,280,398,286);
line(398,286,420,250);
line(420,250,431,200);
line(431,200,437,185);
line(437,185,434,135);
line(434,135,431,85);
line(431,85,401,45);
line(401,45,350,27);
line(200,23,180,40);
line(180,40,170,30);
line(170,30,172,60);
line(172,60,168,80);
line(168,80,158,82);
line(158,82,160,122);
line(160,122,168,118);
line(168,118,163,128);
line(163,128,164,150);
line(164,150,170,170);
line(170,170,172,196);
line(172,196,178,192);
line(178,192,168,220);
line(168,220,176,250);
line(176,250,184,260);
line(184,260,200,262);
line(200,262,190,282);
line(190,282,189,290);
line(189,290,194,287);
line(194,287,200,320);
line(200,320,205,315);
line(205,315,220,320);
line(220,320,219,312);
line(219,312,250,340);
line(250,340,260,355);
line(275,370,260,355);
line(230,107,355,110);
line(200,23,350,27);
delay(1000);
closegraph();
return 0;
}
Output :-
So i have compiled from my phone i have used the turbodroid android app which is availlable in playstore.
You can also compiled from your pc. You will face any problem then comment us and react motivte us by givinus feedback.
Don't copy the blog create your own
You can also compiled from your pc. You will face any problem then comment us and react motivte us by givinus feedback.
Don't copy the blog create your own
Creator:SPARTAN
Written by RIVNO
Comments
Post a Comment