Professional Documents
Culture Documents
Micro-Project Report
On
Moving Boat
Submitted for the partial fulfillment of Third Semester subject “Computer Graphics” Code
: 22318
Sumbitted By:-
Name of Student Enrollment No
Certificate
This is to certify that the Micro Project Report on “ Moving Boat” is
satisfactorily completed and submitted in the partial fulfillment of the
requirement for Subject "Computer Graphics ” in Second Year Computer
Engineering in Semester Third of Academic Year 2022-2023
1
INTRODUCTION
2
MODEL/CHART/DIAGRAM
3
PROCEDURE/WORKING OF MODEL
4
CALCULATION/EXPLAINATION
5
RESOURCES
PROJECT ABSTRACT
• Brief Description:-
• As we all know that computer graphics is mainly used to design animations using
codes and for this purpose we need to have knowledge of computer graphics.
Computer graphics is responsible for displaying art and image data effectively and
meaningfully. It is also used for processing image data received for the physical
world, such as photo and video content.in this micro project we are going to draw a
moving boat using all the basic techniques that we have learnt.
• Aim of Micro-project
a) To draw a moving boat.
b) To understand the concepts practically that we have learnt theoretically.
c) Learning how to develop codes of these images using c programming.
d) By the help of codes we understand the concepts clearly.
• Course Outcomes
a) Manipulate visual and geometrical information of images.
b) Implement standard algorithms to draw various graphics objects using C program.
c) Develop programs for 2-D and 3-D transformation.
d) Use projections to visualize objects on a view plane.
e) Implement various clipping algorithms.
f) Develop programs to create curves using algorithms.
• Procedure
The finalization of the topic is done, I as group member and also proceeded by the
preparation and submission of the abstract to our project guide Mrs. Shivani Shinde.
I review the literature of the project and collect the data related to this project.After
compilation of report and presentation and the final submission was done.
• Functions used in code: -
a) getmaxx(): The graphics.h header file includes the getmaxx() function, which
returns the maximum X coordinate for the current graphics mode and driver.
b) setcolor(N): The setcolor() function in the header file graphics.h is used to change
the current drawing color to the new color.
e) floodfill(pattern, color): The function is used to fill a confined space. To fill the
area, the current fill pattern and color are used.
// using c graphics
#include <conio.h>
#include <dos.h>
#include <graphics.h>
#include <stdio.h>
main()
// gdriver variable.
Turboc3\\BGI");
err = graphresult(); if
(err != grOk) {
grapherrormsg(err));
return 0;
j = 0;
&& (!kbhit())) {
x1 = 10, i = y1 = 0; x2 = 0,
screen cleardevice();
// Set the color of river/sea
setcolor(LIGHTBLUE); setlinestyle(SOLID_LINE, 1,
getmaxx(), getmaxy());
floodfill(getmaxx() - 10,
getmaxy() - 10,
LIGHTBLUE);
// Rain drops
setlinestyle(DASHED_LINE, 1, 2);
+ 20; y2 = y2 + 50;
i++;
setlinestyle(SOLID_LINE, 1, 2);
setcolor(BROWN);
setfillstyle(SOLID_FILL, BROWN);
setcolor(DARKGRAY);
setlinestyle(SOLID_LINE,
40);
x++;
setcolor(LIGHTBLUE);
delay(250);
// Clears the graphic device
setlinestyle(SOLID_LINE, 1, 1);
setfillstyle(SOLID_FILL, LIGHTBLUE);
getmaxx(), getmaxy());
floodfill(getmaxx() - 10,
// Rain drops
setlinestyle(DASHED_LINE, 1, 2);
x1 = 10, i = y1 = 0;
x2 = 0, y2 = 70;
x1 = x1 + 30; y2 =
y2 + 60;
i++;
setlinestyle(SOLID_LINE, 1, 1);
setcolor(BROWN);
setfillstyle(SOLID_FILL, BROWN);
setcolor(DARKGRAY);
setlinestyle(SOLID_LINE, 1, 3);
// the boat
x++;
delay(250);
j++;
getch();
closegraph(); return
0;
}
• Output: -
➢ RESOURCES
S. No. Name of Specifications Quantity
Resource/material
1. Books Computer Graphics
There were also some turning point where for a moment , I found myself
little depressed and at these very critical junctures, I am proud to confess our
teacher staff, which always appeared as a lamp post of live inspiration.
TIRTH PATEL
Enrollment No. 2105300269
ABHISHEK LONDHE
Enrollment No. 2105300271
Soham More
Enrollment No. 2105300283