Professional Documents
Culture Documents
CGR Microproject
CGR Microproject
A Report On
“MICRO PROJECT”
“Animated Rainbow"
MSBTE, PUNE
Page 1 of 14
Computer Engineering Project Topic Name
CERTIFICATE
This is to certify that:
Page 2 of 14
Computer Engineering Project Topic Name
TABLE OF CONTENTS
2. Action plan
3. Introduction
4. Project Objective
5. Algorithm
6. Flowchart
7. Program
8. Output
9 Implementation of microproject
1. Conclusion
2. Reference
Page 3 of 14
Computer Engineering Project Topic Name
ABSTRACT
This microproject explores the development of an Animated Rainbow Generator (ARG) within
the domain of computer graphics. The primary objective is to create a visually appealing and
dynamic rainbow animation using fundamental principles of color theory and graphical
rendering techniques. The project involves designing and implementing algorithms to generate
realistic rainbow patterns, considering factors such as light dispersion, reflection, and refraction.
The Animated Rainbow Generator will be developed as a standalone application, providing users
with customizable parameters to control the appearance and behavior of the animated rainbow.
The underlying technology will leverage graphics programming concepts, including shaders and
rendering pipelines, to achieve a high level of realism in the rainbow representation.
Additionally, the project aims to incorporate interactive elements, allowing users to manipulate
environmental conditions such as light source position and atmospheric effects to observe how
these factors influence the appearance of the animated rainbow. This interactive feature enhances
the educational aspect of the microproject, offering users an engaging platform to explore and
understand the visual phenomena associated with rainbows.
Ultimately, the Animated Rainbow Generator microproject not only focuses on creating a
visually captivating animation but also serves as an educational tool to deepen users'
understanding of the underlying principles of optics and computer graphics. This project aligns
with the broader goal of combining art and science to create an immersive and interactive
learning experience in the field of computer graphics.
Page 4 of 14
Computer Engineering Project Topic Name
ACTION PLAN
Page 5 of 14
Computer Engineering Project Topic Name
INTRODUCTION
In the realm of computer graphics, the creation of visually captivating and dynamic animations
has become a fascinating field of exploration. This microproject, titled "Animated Rainbow
Generator," aims to delve into the synthesis of vibrant and lively rainbows through computer-
generated imagery (CGI).
Rainbows, with their kaleidoscopic hues, have long captivated human imagination. This
microproject seeks to leverage the power of programming and graphic design to bring forth a
digital rendition of this natural phenomenon. By employing algorithms and creative coding
techniques, we aim to simulate the mesmerizing play of colors seen in a rainbow, bringing it to
life on the digital canvas.
Through this exploration, we will not only venture into the technical intricacies of computer
graphics but also engage in the artistic challenge of representing a dynamic and visually
appealing rainbow. The project will involve the use of programming languages such as Python or
JavaScript, along with relevant graphics libraries, to manipulate pixels and create the illusion of
movement and color blending.
In the subsequent phases of this microproject, we will explore various aspects of rainbow
animation, including color interpolation, light dispersion, and dynamic rendering. By the
project's conclusion, we aim to have developed a visually stunning and interactive animated
rainbow, showcasing the amalgamation of technical prowess and creative expression in the realm
of computer graphics.
Page 6 of 14
Computer Engineering Project Topic Name
PROJECT OBJECTIVE
The objective of the CGR microproject is to create an animated rainbow, leveraging computer
graphics techniques. This involves designing and implementing a visually appealing rainbow
animation through programming and graphic manipulation. The project aims to explore concepts
such as color blending, animation sequencing, and possibly user interactivity. By successfully
completing this microproject, participants will gain practical experience in computer graphics
programming and enhance their skills in creating dynamic visual effects.
Page 7 of 14
Computer Engineering Project Topic Name
ALGORITHM -
1.Initialization:
1.Set up the programming environment and canvas for animation.
2.Divide the canvas into bands, each representing a color of the rainbow.
4. User Interaction:
1.Implement user controls to interact with the animation (e.g., start, stop, speed control).
5. Rainbow Loop:
1.Ensure the rainbow loops seamlessly to create a continuous animated effect.
6. Optimization:
1.Optimize the rendering process for smooth animation performance.
7. Dynamic Features:
1.Introduce dynamic elements, such as varying rainbow thickness or pulsating colors, to
enhance visual appeal.
8. Background Effects:
1.Consider incorporating complementary background effects to enhance the overall visual
experience.
9. Documentation:
1.Document the code, providing clear comments for better understanding.
10. Testing:
1.Perform thorough testing to identify and fix any bugs or glitches.
Page 8 of 14
Computer Engineering Project Topic Name
12. Finalization:
1.Ensure the project meets the specified requirements and objectives.
Remember to adapt the algorithm based on the programming language and platform
requirements for your microproject.
Page 9 of 14
Computer Engineering Project Topic Name
FLOW CHART -
PROGRAM -
Page 10 of 14
Computer Engineering Project Topic Name
#include<stdio.h>
#include<graphics.h>
#include<dos.h>
void rainbow()
{
initgraph(&gdriver,&gmode,"C:\\Turboc3\\BGI");
x = getmaxx() / 2;
y = getmaxy() / 2;
delay(100);
setcolor(i/10);
int main()
{
rainbow();
return 0;
}
OUTPUT:
Page 11 of 14
Computer Engineering Project Topic Name
Page 12 of 14
Computer Engineering Project Topic Name
CONCLUSION
Page 13 of 14
Computer Engineering Project Topic Name
REFERENCE
Page 14 of 14