0% found this document useful (0 votes)
29 views16 pages

Overnment Polytechnic Avatmal: Epartment of Computer Ngineering

Uploaded by

niralerashi56
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views16 pages

Overnment Polytechnic Avatmal: Epartment of Computer Ngineering

Uploaded by

niralerashi56
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

GOVERNMENT POLYTECHNIC YAVATMAL

2023-24

DEPARTMENT OF COMPUTER
ENGINEERING
SUBJECT: - COMPUTER GRAPHICS

TOPIC:- RUNTIME PENDULUM CLOCK

Submitted by

Samir Mesram
Rashi Nirale
Nagesh Motirave
Prathmesh Ramteke
Under the Guidance of

Government Polytechnic, Yavatmal


2023-2024

Certificate
Micro Project
This is certify that the microproject titled :- RUNTIME PENDULUM CLOCK IN
COMPUTER GRAPHICS has Completed by Satisfactorily for the subject of
COMPUTER GGRAPHICS using C by the students second year third semester
diploma in computer engineering.

Name of students:-
Samir Mesram
Rashi Nirale
Nagesh Motirave
Prathmesh Ramteke
In partial fulfillment of requirement for the award of the computer in
Diploma in computer engineering and Submitted to the department computer
engineering of government polytechnic Yavatmal (1011) for the work carried
out during the period for the academic year 2023-24 as per curriculum.

PRINCIPAL HOD SUBJECT TEACHER


DR. R. P. MOGRE Prof. S. S. Mete Mam Prof. S.S.Mete Mam
Acknowledgments

It is an incident of great pleasure for us submitting this microproject. We


take this opportunity to express our deep sense of gratitude and great thanks to
our guide and HOD S.S.Mete, who has been constant source of our guidance
and inspiration of thoughts we will always be grateful to them for
encouragement and suggestions given by them from time to time

We should like to thanks all the teaching members of computer engineering


department and sincere thanks to principal R. P. Mogare who always inspire
us.

We are also thankful to our friends and library staff members whose
encouragement suggestions helped us to complete our Microproject.
DECLARATION

We here by declare that the project entitled TOPIC:- RUNTIME PENDULUM CLOCK
in the partial fulfillment of the course computer graphics (22318) in curriculum
of the program. Diploma in computer engineering is submitted to the
department of computer of the institute government polytechnic Yavatmal.

The work done by us in our own piece of work and authentic to the best of
our knowledge under the guidance of S.S.Mete Gpy(1011)

Group Details

Sr.No Name of student Roll Enrollment No


No

1 Samir Mesram 35 2201350094

2 Nagesh Motirave 38 2201350097

3 Rashi Nirale 41 2201350100

4 Prathmesh Ramteke -- 23450250405


INTRODUCTION

RUNTIME PENDULUM CLOCK

A runtime pendulum clock in computer graphics is a captivating fusion of


traditional timekeeping and modern technology. It brings the classic charm of a
pendulum clock to life in a digital format. This dynamic creation not only
displays the current time but also adds an element of realism through the
rhythmic pendulum motion, all within the realm of computer graphics. This
passage provides an introduction to the concept and explores its key elements.

*Dynamic Time Display*: At the heart of the runtime pendulum clock is its
ability to continuously and accurately display the current time, just like a
traditional clock. The hour, minute, and second hands move in real-time,
ensuring that the displayed time is always precise.

*Pendulum Motion*: One of the defining features of a pendulum clock is the


soothing and mesmerizing swing of the pendulum. In a runtime pendulum
clock, this motion is meticulously simulated using computer graphics
techniques. The pendulum gracefully sways back and forth, adding a touch of
authenticity.

*Graphical Elements*: The clock's graphical design includes components


such as the clock face, hands, numerals, and the pendulum itself. These
elements are not just static images; they are dynamic and responsive to the
passage of time, creating a visually appealing and immersive experience.

*User Interaction*: Some runtime pendulum clocks offer user interaction,


allowing individuals to set the time, customize the clock's appearance, or even
experiment with different styles. This interactivity enhances the clock's
functionality and personalization.
*Rendering and Animation*: The magic happens through rendering and
animation techniques in computer graphics. Libraries and tools like OpenGL,
SDL, or HTML5 canvas enable the rendering of graphical elements and the
creation of realistic animations, including the pendulum's graceful swing.

*Background and Atmosphere*: The clock's presentation is not limited to


just the time display. It can be positioned in various settings or against different
backgrounds to create a specific ambiance. Lighting and surroundings can be
adjusted to set the mood and enhance the clock's realism.

*Educational and Decorative Value*: Beyond being a functional timekeeping


device, a runtime pendulum clock has educational and decorative significance.
It can be incorporated into educational software to teach concepts of time and
physics. Moreover, it serves as a beautiful decorative element on computer
screens and desktops.

*Technical Challenges and Optimization*: Creating a runtime pendulum


clock involves addressing technical challenges. Achieving smooth animations
and optimizing resource usage are crucial to ensure the clock runs seamlessly
on different platforms.

In summary, a runtime pendulum clock in computer graphics marries


the elegance of traditional horology with the capabilities of modern technology.
It brings forth a captivating and functional timepiece that not only tells time but
also immerses viewers in the enchanting world of a pendulum's gentle sway.
Whether used for educational purposes, decorative flair, or simply as a
delightful addition to digital environments, a runtime pendulum clock is a
testament to the harmonious blend of art and technology.

Annexure – I
PART A – Micro-Project Proposal
Login and Registration

1.0.Aims/Benefits of the Micro-Project


The aim of a runtime pendulum clock in computer graphics is to create
a visually captivating and dynamically functional digital simulation of a
traditional pendulum clock. It combines accurate real-time timekeeping with
the mesmerizing motion of a swinging pendulum, making it an educational,
decorative, and technically challenging piece of art for digital environments.

2.0 Course Outcomes addressed


 Turbo C++ programs to perform file operations.

3.0 Proposed Methodology

The proposed methodology for creating a runtime pendulum clock in


computer graphics involves the following key steps:

1. *Design*: Conceptualize and design the clock's appearance and ambiance.

2. *Technology*: Choose graphics technology and tools for rendering and


animation.

3. *Real-Time Timekeeping*: Implement accurate timekeeping functionality.

4. *Pendulum Motion*: Simulate realistic pendulum motion.

5. *Graphic Elements*: Design clock face, hands, numerals, and pendulum.

6. *User Interaction (Optional)*: Allow user customization.

7. *Compatibility*: Ensure multi-platform compatibility.


8. *Optimization*: Address technical challenges and optimize performance.

9. *Testing and Debugging*: Thoroughly test and debug the clock.

10. *Documentation*: Create user and developer documentation.

11. *Deployment*: Deploy the clock on chosen platforms.

12. *Feedback and Updates*: Collect user feedback and make improvements.

13. *Educational Integration (Optional)*: Integrate into educational


contexts.

This methodology aims to create an engaging and technically sound


runtime pendulum clock in computer graphics.

ACTION PLAN
Details of Plans Plan Name of responsible Working
Sr. activity start end team members hours
No date date
1 5.0 Resources
Discussion Required
20- 26- Nagesh Motirave 1
and 08- 08- samir Mesram
finalization 2023 2022 Prathmesh Ramteke
Nameof topic
of resources SpecificationsRashi Nirale Remarks
Preparation 27- 07- Rashi Nirale Nagesh 1
2 Internet
and 08- High08-speed Motirave prathmesh
Necessary
submission 2023 2022 Ramteke
You of
tube
abstract High speed Helpful for
3 Literature 08- 16- Nagesh Motirave 1
understanding
review 09- 09-
Website 20223High2022
speed Useful
4 Collection of 17- 28- All Members 1
data 09- 09-
2023 2022
5 Collection of 29- 05- Samir Mesram 1
data 09- 10-
2023 2022
6 Discussion 06- 17- Nagesh Motirave 1
and outline 10- 10- rashi Nirale
of content 2023 2022
7 Formulation 18- 23- Nagesh Motirave 1
of content 10- 10-
2023 2022
8 Editing and 24- 01- 1
proof 10- 11-
Reading of 2023 2022
content All Members
9 Compilation 27- 11- All Members 1
of report 10- 10-
2023 2022
10 Seminar 30- 21- All Members 1
10- 11-
2023 2022
11 Final 30- All Members 1
submission 11-
2022
Annexure –II
PART B – Micro-Project Report

1.0 Rationale:
The rationale for creating a runtime pendulum clock in computer graphics
is to blend tradition and technology, offering users a visually captivating and
educational experience that combines real-time timekeeping with the
mesmerizing motion of a pendulum. This simulation serves both functional and
decorative purposes, enriching digital environments with a dynamic and
aesthetically pleasing element.

2.0 Aims/benefits of micro project

The aim of a runtime pendulum clock in computer graphics is to create


a visually captivating and dynamically functional digital simulation of a
traditional pendulum clock. It combines accurate real-time timekeeping with
the mesmerizing motion of a swinging pendulum, making it an educational,
decorative, and technically challenging piece of art for digital environments .

3.0 Course outcomes addressed


 Develop c++ programs to perform file operations.

4.0 Literature review


https://youtu.be/ABKq4kbZF4U
https://youtu.be/c3RG_IZhGEo
https://youtu.be/OYzoVyF3F2g

5.0 Actual methodology followed

The actual methodology for creating a runtime pendulum clock in


computer graphics in C involves:
1. Designing the clock's appearance and ambiance.
2. Using graphics libraries for rendering and animation.
3. Implementing real-time timekeeping.
4. Simulating realistic pendulum motion.
5. Designing clock elements.
6. Adding user interaction if desired.
7. Ensuring multi-platform compatibility.
8. Addressing technical challenges and optimizing performance.
9. Thoroughly testing and debugging.
10. Creating documentation.
11. Deploying the clock on chosen platforms.
12. Collecting user feedback for improvements.
This methodology combines visual appeal and functionality to offer an
engaging digital pendulum clock.

6.0 Actual Resources required

Name of resources Specifications Remarks


Internet High speed Necessary
You tube High speed Helpful for
understanding
Website High speed Useful
7.0 Skills Developed / Learning outcome of this Micro-Project

The development of a runtime pendulum clock in computer graphics in C


enhances various skills, including :
1. *Programming Skills*: Developers improve their programming skills,
particularly in graphics and animation, using C language.
2. *Graphic Design*: Designing clock elements and ambiance hones
graphic design skills.
3. *Physics Understanding*: Implementing pendulum motion requires a
grasp of physics principles.
4. *Time Management*: Synchronizing with real-time clocks enhances
time management skills.
5. *Problem Solving*: Addressing technical challenges and optimizing
performance sharpens problem-solving abilities.
6. *User Interaction*: Incorporating user interaction features develops
user experience (UX) design skills.
7. *Documentation*: Creating user and developer documentation
improves communication skills.
8. *Cross-Platform Development*: Ensuring multi-platform
compatibility broadens technical expertise.
9. *Testing and Debugging*: Rigorous testing and debugging enhance
quality assurance skills.
10. *Feedback Incorporation*: Adapting the clock based on user
feedback fosters adaptability and user-centric design skills.

The development process nurtures a diverse skill set in graphics


programming and software engineering.
8.0 Application of this Micro-Project

Here are some applications of a runtime pendulum clock in computer


graphics using C, explained in points:

1. Realistic Simulations
2. Educational Tools
3. Decorative Elements
4. Game Elements
5. Interactive Art
6. Engineering Visualization
7. User Engagement
8. Prototype Testing
9. Scientific Visualizations
10. Timekeeping Features

These applications highlight the versatility of a runtime pendulum clock


in computer graphics and its ability to enhance both aesthetics and
functionality in various contexts.
Algorithm
 Include necessary header files:<conio.h> for console I/O
functions.<dos.h> for delay function.<stdio.h> for standard I/O
functions.<time.h> for time-related functions.
 Define the drawPendulumClock function that takes three integer
parameters: hour, minute, and second. This function will be responsible
for drawing the pendulum clock.Inside the drawPendulumClock
function:Clear the console screen using clrscr().Display a header for
the clock.Print the current time in the format "HH:MM:SS".
 In the main function:Initialize hour, minute, and second variables.Enter
a while loop that continues until a key is pressed (using kbhit()
function).Inside the loop:Get the current time by calling time and
localtime.Extract the hour, minute, and second from the current
time.Call the drawPendulumClock function to display the clock with
the current time.Delay for 1 second using the delay function to update
the clock every second.
 Return 0 to indicate successful program completion.
CODE
#include <conio.h>
#include <dos.h>
#include <stdio.h>
#include <time.h>
void drawPendulumClock(int hour, int minute, int second)
{
clrscr();
printf("Pendulum Clock\n");
printf("--------------\n");
printf(" %02d:%02d:%02d\n", hour, minute, second);
printf("--------------\n");
// Implement the pendulum animation here
// You can use characters like '|' and '/' to simulate the pendulum
}
1int main()
{
int hour, minute, second;
while (!kbhit())
{
struct tm* currentTime;
time_t rawTime;
time(&rawTime);
currentTime = localtime(&rawTime);
hour = currentTime->tm_hour;
minute = currentTime->tm_min;
second = currentTime->tm_sec;
drawPendulumClock(hour, minute, second);
delay(1000); // Delay for 1 second
}
return 0;
}
😊 THANK YOU!

You might also like