Vous êtes sur la page 1sur 14

ACKNOWLEDGEMENT

A project is golden opportunity for learning and self–development. We consider our


self very lucky and honoured to have so many wonderful teachers guide me through in
completion of this project.
we grateful thanks to Mr Tushar Patil Sir Principal of G.H Raisoni Polytechnic who in
spite of being extraordinarily busy with his duties, took time out to hear, guide and keep me
on correct path. We do not know when we would have been without him. A humble Thank
You Sir.
Mr Hemant Chaudhari, Project Guide whose patience we have probably tested to limit.
He was always involved in the entire process, shared his knowledge encourage us to think.
Thank You Sir.
Last But not the least there were so many who shared valuable information that helped in
the successful completion of this project.

1
CHAPTER 1
INTRODUCTION
Computer graphics is an art of drawing pictures on computer screens with the help of
programming. It involves computations, creation, and manipulation of data. In other words, we
can say that computer graphics is a rendering tool for the generation and manipulation of
images.
ADVANTAGES OF COMPUTER GRAPHICS
The main advantages of computer graphics are as follows:-
1. It provides tools for producing pictures not only of concrete real world objects but also of
abstract, synthetic objects such as mathematical surface in 4D and of data that have no inherent
geometry such as survey results.
2. It have ability to show moving pictures and thus it is possible to produce animations with
computer graphics.
3. With computer graphics user can also control the animation speed, portion of the view, the
geometric relationship the object in the scene to one another, the amount of detail shown and
on.
4. The computer graphics provides tool called motion dynamics. with this tool user user can
move and tumble objects with respect to a stationary observer, or he can make objects
stationary and the viewer moving around them. A typical example is walk through made by
builder show flat interior and building surroundings. In many case it is also possible to move
both objects and viewer.
5. The computer graphics also provides facility called update dynamics. With update dynamics
it is possible to change this shape, colour or other properties of the objects being viewed.

APPLICATION OF COMPUTER GRAPHICS


Computer graphics are very useful. Today almost every computer can do some graphics, and people
have even come to expect to control their computer through icons and pictures rather than just by
typing.

Computer-generated imagery is used for movie making, video game and computer
program development, scientific modeling, and design for catalogs and other commercial art. Some
people even make computer graphics as art. We can classify applications of computer graphics into
four main areas:

 Display of information
 Design
 User interfaces
 Simulation

According to these four areas there are several types of applications which are used in today’s
world. These are,

Figure 1.1: Application of Computer Graphics

 Computational Biology: Computational biology is an interdisciplinary field that


applies the techniques of computer science, applied mathematics and statistics to
address biological problems. The main focus lies on developing mathematical modeling
and computational simulation techniques.
 Computational Physics: Computational physics is the study and implementation of
numerical algorithm to solve problems in physics for which a quantitative theory
already exists. It is often regarded as a sub discipline of theoretical physics but some
consider it an intermediate branch between theoretical and experimental physics.
 Information of Graphics: Information graphics or information graphics are visual
representations of information, data or knowledge. These graphics are used where
complex information needs to be explained quickly and clearly, such as in signs, maps,
journalism, technical writing, and education. They are also used extensively as tools by
computer scientists, mathematicians, and statisticians to ease the process of developing
and communicating conceptual information.
 Scientific Visualization: Scientific visualization is a branch of science, concerned with
the visualization of three dimensional phenomena, such as architectural, meteorological,
medical, biological systems. Scientific visualization focuses on the use of computer
graphics to create visual images which aid in understanding of complex, often massive
numerical representation of scientific concepts or results.
 Graphic Design: The term graphic design can refer to a number of artistic and
professional disciplines which focus on visual communication and presentation. Various
methods are used to create and combine symbols, images and/or words to create a
visual representation of ideas and messages. Graphic design often refers to both the
process (designing) by which the communication is created and the products (designs)
which are generated.
 Computer-aided Design: Computer-aided design (CAD) is the use of computer
technology for the design of objects, real or virtual. The design of geometric models for
object shapes, in particular, is often called computer-aided geometric design (CAGD).
CAD may be used to design curves and figures in two-dimensional ("2D") space; or
curves, surfaces, or solids in three-dimensional ("3D") objects. CAD is also widely used
to produce computer animation for special effects in movies, advertising, technical
manuals.
 Web Design: Web design is the skill of designing presentations of content usually
hypertext or hypermedia that is delivered to an end-user through the World Wide Web,
by way of a Web browser. The process of designing Web pages, Web sites, Web
applications or multimedia for the Web may utilize multiple disciplines, such as
animation, authoring, communication design, corporate identity, graphic design, human-
computer interaction, information architecture, interaction design, marketing,
photography, search engine optimization and typography.
 Digital Art: Digital art most commonly refers to art created on a computer in digital
form. On other hand, is a term applied to contemporary art that uses the methods of
mass production or digital media. The impact of digital technology has transformed
traditional activities such as painting, drawing and sculpture, while new forms, such as
net art, digital installation art, and virtual reality, have been recognized artistic
practices.
 Video Games: A video game is an electronic game that involves interaction with a user
interface to generate visual feedback on a raster display device. The electronic systems
used to play video games are known as platforms. This platform creates through
graphics.
 Virtual Reality: Virtual reality (VR) is a technology which allows a user to interact with
a computer-simulated environment. The simulated environment can be similar to the
real world, for example, simulations for pilot or combat training, or it can differ
significantly from reality, as in VR games. It is currently very difficult to create a high-
fidelity virtual reality experience, due largely to technical limitations on processing
power, image resolution and communication bandwidth. Virtual Reality is often used to
describe a wide variety of applications, commonly associated with its immersive, highly
visual, 3D environments.
 Computer Simulation: A computer simulation, a computer model or a computational
model is a computer program, or network of computers, that attempts to simulate an
abstract model of a particular system.
 Education: A computer simulation, a computer model or a computational model is a
computer program, or network of computers, that attempts to simulate an abstract
model of a particular system. Computer simulations have become a useful part of
mathematical modeling of many natural systems in physics (computational physics),
chemistry and biology, human systems in economics, psychology, and social science and
in the process of engineering new technology, to gain insight into the operation of those
systems, or to observe their behavior.
 Information Visualization: Information visualization is the study of the visual
representation of large-scale collections of non-numerical information, such as files and
lines of code in software systems, and the use of graphical techniques to help people
understand and analyze dat

CHAPTER 2

System Design and Development

2.1 Algorithm
2.2 Flowchart

Start

Header Files

Datatypes

Shapes ellipse,line Declarations


Assigning variables
CHAPTER 3
Styles
System Designing Requirements

3.1 Software Description


Colors,Patterns
Coding 1)DOSBox is an Animations
emulator program which emulates an
IBM PC compatible computer running a DOS operating system. Many IBM PC compatible
graphics and sound Compile cards are also Errors
emulated.

2)Microsoft Word 2013

3.2 Hardware Description cheaks 3.3Programme


1) The Computer System (Intel core 2 Duo Processor)
2) RAM minimum 2 GB
3) Operating system Windows
4) 10
Dell 500 GB HDD
Display OutputExecute
end
#include<stdio.h> int
#include<conio.h> g[]={215,303,212,309,223,315,226,310,215,
#include<graphics.h> 303};
#include<dos.h> clrscr();
#include<stdlib.h> initgraph(&gd,&gm,"C:\\TC\\BGI");
void main() setcolor(7);
{ setfillstyle(1,7);
int gd= DETECT,gm; rectangle(20,30,(getmaxx()-20),(getmaxy()-
int 20));
arr[]={308,335,323,390,337,390,320,335,30 floodfill(20,30,7);
8,335}; setcolor(4);
int settextstyle(8,HORIZ_DIR,1);
b[]={262,335,247,390,261,390,274,335,267,
335}; floodfill(200,200,7);
int outtextxy(380,380,"DEVELOPED BY:");
a[]={336,390,336,396,343,402,347,402,350, outtextxy(380,400,"KUNAL DHANDE");
405,350,410,322,410,322,390,336,390}; outtextxy(380,420,"GAYATRI KHADKE");
int outtextxy(380,440,"GHANSHYAM
c[]={263,390,248,390,248,396,241,402,231, BAVISKAR");
402,230,405,230,410,263,410,263,390};
int //left ear
d[]={237,245,215,303,226,310,246,250,237, setcolor(0);
245}; setfillstyle(1,0);
int circle(220,73,40);
e[]={334,250,355,310,365,303,344,245,334, floodfill(221,73,0);
245}; //right ear
int setcolor(0);
f[]={365,303,355,310,357,315,369,310,365, setfillstyle(1,0);
303}; circle(360,73,40);
floodfill(360,73,0); setfillstyle(9,12);
//face ellipse(290,330,0,360,34,11);
setcolor(0); floodfill(291,331,12);
setfillstyle(1,0); setcolor(RED);
circle(290,150,80); setfillstyle(1,RED);
floodfill(290,150,0); ellipse(290,300,0,360,39,40);
//t floodfill(290,300,RED);
setcolor(6); //stamac
setfillstyle(1,6); setcolor(0);
rectangle(250,100,330,180); setfillstyle(1,0);
floodfill(251,151,6); ellipse(290,255,0,360,44,56);
//left leg floodfill(290,255,0);
setcolor(0); //hand
setfillstyle(1,0); setcolor(0);
fillpoly(5,arr); setfillstyle(1,0);
//right leg circle(244,245,8);
setcolor(0); floodfill(244,245,0);
setfillstyle(1,0); setcolor(0);
fillpoly(5,b); setfillstyle(1,0);
//right shooe circle(336,245,8);
setcolor(14); floodfill(336,245,0);
setfillstyle(1,14); //left hand
fillpoly(9,a); setcolor(8);
//left shooe setfillstyle(1,8);
setcolor(14); fillpoly(5,d);
setfillstyle(1,14); //right hand
fillpoly(9,c); setcolor(8);
//p2 setfillstyle(1,8);
setcolor(12); fillpoly(5,e);
//r hand2 circle(270,307,9);
setcolor(15); floodfill(270,307,WHITE);
setfillstyle(1,15); setcolor(WHITE);
fillpoly(5,f); setfillstyle(1,WHITE);
ellipse(364,315,0,360,8,6); circle(310,307,9);
floodfill(364,315,15); floodfill(310,307,WHITE);
ellipse(360,316,0,360,4,7); //face2
setcolor(8); setcolor(6);
drawpoly(5,f); setfillstyle(1,6);
ellipse(364,315,0,360,8,6); sector(270,170,62,180,45,80);
ellipse(360,316,0,360,4,7); sector(310,170,0,117,45,80);
//l h2 ellipse(275,195,-70,70,90,35);
setcolor(15); fillellipse(275,195,90,35);
setfillstyle(1,15); ellipse(300,195,110,255,90,35);
fillpoly(5,g); fillellipse(300,195,90,35);
ellipse(217,314,0,360,8,6); ellipse(290,215,190,350,40,25);
floodfill(217,314,15); fillellipse(290,215,40,25);
ellipse(221,316,0,360,4,7); //eyes
setcolor(8); setcolor(15);
drawpoly(5,g); setfillstyle(1,15);
ellipse(217,314,0,360,8,6); sector(265,156,0,180,15,50);
ellipse(221,316,0,360,4,7); floodfill(265,156,15);
//pant setcolor(15);
setcolor(RED); setfillstyle(1,15);
setfillstyle(1,RED); sector(315,156,0,180,15,50);
ellipse(290,310,0,360,37,28); floodfill(315,156,15);
floodfill(290,310,RED); setcolor(0);
setcolor(WHITE); setfillstyle(1,0);
setfillstyle(1,WHITE); sector(265,156,0,180,10,30);
floodfill(265,156,0); ellipse(290,180,0,360,21,15);
sector(315,156,0,180,10,30); floodfill(290,180,0);
floodfill(315,156,0); setcolor(8);
//lips setfillstyle(1,8);
setcolor(0); circle(277,183,2);
setfillstyle(1,0); floodfill(277,183,8);
sector(290,213,180,360,20,20); //Smile and nose lines
floodfill(290,213,0); setcolor(0);
setcolor(RED); ellipse(290,203,60,120,105,46);
setfillstyle(1,RED); arc(290,110,230,310,105);
sector(290,220,-200,360,16,10); arc(344,200,0,70,15);
floodfill(290,220,RED); arc(235,200,110,180,15);
//nose getch();
setcolor(0); closegraph();
setfillstyle(1,0); }
Fig 3.1 snapshot

CHAPTER 4

Conclusion
Our Micro-Project entitled the design of Taj mahal by using graphics implemented in c.
We have successfully completed the micro-project in group work. We have used different
graphics algorithms which are implemented in c a micky mouse in computer graphics .line
drawing algorithm and flood fill algorithm are used for various graphical shapes and to fill
colour in that graphical shapes of micro-project.

Vous aimerez peut-être aussi