Computer Graphics Microproject Group File
Computer Graphics Microproject Group File
Vision
To be a vibrant technical institute of global repute contributing
towards the needs of industries & society.
Mission
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
Computer Department
Vision
Provide skilled professionals in Computer Engineering to
contribute towards the advancement of technology useful for
society and industrial environment.
Mission
M1.Impart need based and value based education by providing exposure of
latest tools and technologies in the area of computer engineering to satisfy
the stakeholders.
M2.Upgrade and maintain facilities for quality technical education with
continuous effort for excellence in Computer Engineering.
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
MICRO-PROJECT REPORT ON
Design a rotating fan.
In Partial fulfillment of Diploma in Computer Engineering
(Sixth Semester)
In the subject of
CM5460 Computer Graphics
By
Government Polytechnic
Amravati
(An Autonomous Institute of Govt. of Maharashtra)
Prof. V. M. Aswar
Lecturer in Computer Graphics
Department of Computer Engineering
Government Polytechnic Amravati
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
Certificate
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
1
Annexure-I
PART A- Plan
Micro-Project Proposal
1. first of all , we discuss about the Microproject topic and finalize the
topic Design a Rotating fan .
2. Then some discussion were on the topic. Then we gather
information about the project and collect important points which we
are used in our project .
3. Then we analyzed the data and developed the program using built-
in graphics function and executed it .
4. Then the final report is made.
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
Turbo C++ 1
Turbo C++ 3.2
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
2
Annexure-II
PART B- Plan
Micro-Project Proposal
0.3 Action Plan (Sequence and time required for major activities for 8weeks)
S.N Details of activity Planned Planned I. Code
. start Finish &Name of
date date Team
Members
1 Gather information 10 – 05 – 14 – 05–
about the microproject 2022 2022 Anand
and make important Umbarkar –
notes . 19CM064
2 Make the Microproject 21 – 05 - 26 – 05-
and report file . 2022 2022 Sarthak
Vinchurkar
-19CM066
3 Implement the program 18 – 05- 20 – 05 - Abhishek
and execute 2022 2022 Wankhade –
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
19CM067
4 Implement the program 18 – 05 - 20 – 05 - Gayatri Yaul –
and execute 2022 2022 19CM066
5 Analyzing the 15 – 05 - 17 – 05 - Vishakha Yawle
information . 2022 2022 -19CM069
Turbo C++ 1
Turbo C++ 3.2
Micro-Project
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
Introduction :
Computer Graphics
Computers have become a powerful tool for the rapid and economical
production of pictures. There is virtually no area in which graphical
displays cannot be used to some advantage, and so it is not surprising to
find the use of computer graphics so widespread. Although early
applications in engineering and science had to rely on expensive and
cumbersome equipment, advances in computer technology have made
interactive computer graphics a practical tool. Today, we find computer
graphics used routinely in such diverse areas as science, engineering,
medicine, business, industry, government, art, entertainment, advertising,
education, and training.
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
In this micro project, we will try to implement the rotating fan which
will be rotating. There will be a supporting blades. The blades will be
attached to the tower and the blade will be rotating.
System Requirements
1. Hardware Requirements
Processor : Intel i3 onwards
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
2. Software Requirements
Operating system : windows
Language tool : C
Program :
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <dos.h>
int main(void)
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
errorcode = graphresult();
if (errorcode != grOk)
/* an error occurred */
getch();
midx = getmaxx() / 2;
midy = getmaxy()/ 2;
if (endangle1 == 360)
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
stangle1 = -45;
endangle1 = 0;
if (endangle2 == 360)
stangle2 = -45;
endangle2 = 0;
cleardevice();
/* fan stand */
setfillstyle(SLASH_FILL, i % 15);
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
setfillstyle(BKSLASH_FILL, i % 15);
delay(75);
/* clean up */
getch();
closegraph();
return 0;
Program Explanation :
So, this is the “C” Graphics Program in which we have created the
Rotating fan which is rotate and it has a two wings that are rotate and It
is bulid on one stand and rotaate. Here, we developed the program for
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
that and implement the idea into it. First of all we have included all the
header files that we requires for this program that are #include<stdio.h>,
#include <graphics.h>, #include <stdlib.h>, #include <conio.h> and
#include <dos.h> . Then there is a main function which is the first
function which is called when program start exectution. inside the main
function we have declare the graphics driver variable and detct the
appropriate graphics mode for it and store it in a gmode variable and also
decalre one variale errorcode. We decalre the variable stangle1 and
assign the value -45 to it likewise we declare the variale endangle1 = 0
and variable radius = 100 and Variable int stangle2 = 135 and
endangle2 = 180.
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
Then draw the fan stand using rectangle() function using the midx
and midy value that we find earilier. Hence draw the stand in the middle
of the screen. And then draws the first wing of fan using the
setfillstyle() and pieslice() usig the given angles. Likewise we draws the
second wing of fan using the setfillstyle() and pieslice() usig the given
angle then stop for the sometimes i.e for 40 milisecond using the delay()
function and again go for the second iteration of the for loop and the
process is repaeat for 400 times that looks like the fan is rotating and
after the 400th iteration the program controls goes outside the loop and
then deallocate memory allocated for graphic screen using the
closegraph(); function. And stop the program using the return 0; and we
got the output of rotating fan and following screenshots shows the
execution of the program.
1. Input :-
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
2. Output :-
Conclusion
Downloaded by Mr R K ([email protected])
lOMoARcPSD|48049738
Downloaded by Mr R K ([email protected])