How programmer wish happy new year by programming knowledge ? C program to wish happy new year Hello friends Happy New Year to all of you. And on this occasion of New Year, we have prepared a simple mini project using C programming language. Whose code you can download it by clicking on the download link given below. Download link
Draw Doraemon picture using C graphic
How to draw Doraemon picture?
Today we are telling you how we can draw a photo of Doraemon using c ++ graphics. You can see its code below and you can use it by copying it.
We have also made a video on this. You can also watch it below link.
Code -
#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<stdlib.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
ellipse(200,450,150,390,50,16);
line(157,441,243,441);
ellipse(252,448,246,389,50,18);
line(243,441,297,441);
ellipse(249,441,90,180,10,15);
ellipse(155,410,80,280,8,8);
line(157,441,157,370);
line(297,441,297,350);
circle(147,357,16); //hand
ellipse(137,342,300,330,58,19);
ellipse(174,348,110,170,29,49);
circle(327,275,16);
ellipse(265,260,299,340,74,90);
ellipse(323,285,110,170,25,19);
//head
line(163,302,285,302);
line(163,298,285,298);
ellipse(163,301,90,270,3,3);
ellipse(285,300,280,80,4,3);
ellipse(243,334,143,40,56,48);
ellipse(244,346,163,15,30,24);
line(214,340,273,340);
circle(244,310,8);
line(238,306,251,306);
line(236,309,251,309);
ellipse(220,237,0,180,87,60);
ellipse(180,237,180,250,47,65);
ellipse(268,237,290,360,40,65);
ellipse(263,277,15,90,45,60);
ellipse(245,210,0,360,19,23);
ellipse(207,210,0,360,19,23);
ellipse(202,237,190,243,47,69);
ellipse(187,254,90,170,32,35);
circle(216,217,5);
circle(237,218,5);
// ellipse(239,220,20,160,3,4);
circle(227,236,8);
ellipse(230,262,180,360,45,30);
ellipse(232,263,10,190,47,6);
ellipse(275,253,290,110,10,8);
line(227,244,227,257);
line(245,238,269,234);
line(245,244,269,242);
line(245,250,269,252);
line(185,236,210,238);
line(185,244,210,244);
line(185,252,210,250);
setcolor(11);
outtextxy(450,450,"- Draw By Shubham");
settextstyle(5,1,7);
setcolor(15);
outtextxy(10,124,"DORAEMON");
getch();
closegraph();
}
Comments
Post a Comment