Computer Graphics PROJRCT
Computer Graphics PROJRCT
GRAPHICS
ANIMATED
RAINBOW ARC
INDEX
INTRODUCTION
WORKING OF PROJECT
APPLICATION
CONCLUSION
REFERENCE
VOTE OF THANKS
3
INTRODUCTION
In computer graphics, a rainbow is a visual
representation of the natural meteorological phenomenon
created through the manipulation of light and color to
enhance the visual appeal of digital images,scenes and
animations .
ALGORITHM
Step 1:- Start
Step 2:-Includ e the req uired head er fi les for sta nda rd in put /out put , con sole
I/O, gra phics, and DOS functi ons.
b. Initi a lize the graph ics mode usin g init grap h with th e specifi ed driver
(DE TEC T) an d mode. The BGI fi le "C:\Turb oc3NN BGI" is used for confi gurati o n.
ii. Set the co lor for drawin g a n a rc, with t he color in dex ba sed o n t he
current valu e of i.
iii. Draw an a rc in th e grap hics window, sta rti n g from the center (x, y ) wit h a
ra diu s from 0 to 180 degrees, where the radius cha nges wit h the loop variab le
i.
5
start
Declrare variable
FLOWCHART
” Loop
I=30 to
199
Increment i++
stop
It begins by including necessary header files for
graphics and input/output operations. In the
main function, it initializes graphics with specific
settings. It then calculates the center of the
7
HARDWARE AND SOFTWARE
TURBO C
8
CODE AND OUTPUT
CODE OUTPUT
9
APPLICATION
E D U C AT I O N A R T A N D A N I M AT I O N VISUAL EFFECTS S I M U L AT I O N S
It can be used as a learning tool It can be a starting The principles used in
to understand the basics of point for creating more Elements of this code
this code can be applied can be used to create
graphicsprogramming,including complex graphics and t o c r e a t e v i s u a l e ff e c t s i n
initializing animations,such as visual simulations for
movies, video games, or educational or training
graphics,drawingshapes and games,interactive art,or o t h e r m u l ti m e d i a
animations. multimedia purposes, like physics
projects. simulations.
applications.
10
CONCLUSION
• In short, the provided code is a simple, outdated graphics program that creates a basic animated
rainbow-like effect using the Turbo C/C++ environment.
11
https://en.m.Wikipedia.org
www.greekforgeeks.org
13