Analog Clock
Analog Clock
Analog Clock
Analog Clock
SEMESTER : THIRD
DEPARTMENT : COMPUTER ENGINEERING
Submitted To
Prof. PUNAM.R.SATHE
Lecturer in
Computer Graphics (22318)
GOVERNMENT POLYTECHNIC NANDURBAR
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION,MUMBAI
Certificate
Computer graphics deals with generating images with the aid of computers.
Today, computer graphics is a core technology in digital photography, film, video
games, cell phone and computer displays, and many specialized applications
generated imagery (CGI).
Page 1 of 9
including librarys
<graphics.h>
<iostream>
The iostream library is an object-oriented library that provides input and output
functionality using streams. A stream is an abstraction that represents a device on
which input and ouput operations are performed. A stream can basically be
represented as a source or destination of characters of indefinite length.
<cmath> (math.h)
<ctime>
The ctime() function in C++ converts the given time since epoch to a calendar local
time and then to a character representation. A call to ctime(time) is a combination of
asctime() and localtime() functions, as asctime(localtime(time)) . It is defined in
<ctime> header file.
Page 2 of 9
<limits>
It is a Numeric limits type and it provides information about the properties of
arithmetic types (either integral or floating-point) in the specific platform for which
the library compiles.
#define PI 3.1415
The using namespace statement just means that in the scope it is present, make all the
things under the std
namespace available without having to prefix std:: before each of them.
Page 3 of 9
Function used
Cout in C++
The cout object in C++ is an object of class ostream. It is defined in iostream header
file. It is used to display the output to the standard output device i.e. monitor. It is
associated with the standard C output stream stdout. The data needed to be displayed
on the screen is inserted in the standard output stream (cout) using the insertion
operator(<<).
Setcolor function in C
In Graphics, each color is assigned a number. Total number of colors available are 16.
Number of available colors depends on current graphics mode and driver. For
example, setcolor(RED) or setcolor(4) changes the current drawing color to RED.
Remember that default drawing color is WHITE. The Colors table is given below.
Lineto() function in C
The header file graphics.h contains lineto() function which draws a line from current
position to the point(x,y).
Note : Use getx() and gety() to get the current position.
Moveto() function in C
The header file graphics.h contains moveto() function which changes the current
position to (x, y)
Page 4 of 9
Outtextxy() function in C
The header file graphics.h contains outtextxy() function which displays the text or
string at a specified point (x, y) on the screen.
closegraph() function in C
The header file graphics.h contains closegraph() function which closes the graphics
mode, deallocates all memory allocated by graphics system and restores the screen to
the mode it was in before you called initgraph.
Conclusion:
Page 5 of 9
SNAPSHOTS
Page 6 of 9
COURSE OUTCOMES
LEARNING OUTCOMES
A. how to work in a group..
Page 7 of 9
Government Polytechnic Nandurbar
Weekly Work/Progress Report
Project Details of 16 Engagement Hours of the Student Regarding Completion of the
Page 8 of 9
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION, MUMBAI
Evaluation sheet for the Micro project
Academic Year: 2021-22
Course: Computer Engineering Semester: III
Roll No. Name of Students Mark out of 4 for Marks out of 6 for Total
Performance in Performance in oral marks Out
group activity And presentation of 10
Prof. PUNAM.R.SATHE
(Name & Signature of faculty)
Page 9 of 9