Professional Documents
Culture Documents
Program: B. Tech.
Branch: CSE/IT
Subject Code: CS208
Credits: 3(L)+0(T)+1(P)=4
AIM OF THE LABORATORY
Computer graphics is an art learnt through algorithms. The lab work covers all the basic algorithms
for line drawing, circle, ellipse, basics of 2d and 3d transformations, b-spline and bezier curves,
clipping, viewing, visibility and rendering. In additions to the above, the student is expected to
implement programmes for object and their movement. The ultimate goal of this lab work is to
prepare a ground work for next higher level of learning and that is, image processing.
Software Requirements :
Turbo -C software
Tentative List of Experiments to be attempted by the
student during the session 2010-11
Study the built in functions available in Turbo- C Environment and then perform the following in:
Week 1:
(1) WAP to display the name in graphics mode.
(2) WAP to display the student information with changing background color.
Week 2:
(1) WAP to switch to or from text to graphics mode and vice- versa.
(2) WAP to draw ten circles inside one another and fill the circles with different colors.
Week 3:
(1) WAP to draw a BUS.
(2) WAP to draw a KITE.
(3) Any other object as specified by the faculty.
Week 4:
(1) WAP to draw a line with DDA algorithm.
Week 5:
(1) WAP to draw a line with Bresenham’s algorithm.
Week 6:
(1) WAP to draw a circle using Bresenham’s algorithm.
Week 7:
(1) WAP to draw a circle using mid point algorithm.
Week 8:
(1) WAP to draw ellipse using mid point algorithm.
Week 9:
(1) WAP to fill a polygon by using scan line fill algorithm.
Week 10:
(1)WAP to provide movement to BUS.
(2)Movement of any other object as specified by the faculty
(3) WAP to draw a fish and provide the moment.
Week 11:
(1) WAP to apply all types of transformations on the KITE.
Week 12:
(1) WAP to develop a clock
Week 13:
(1) WAP to develop a digital clock
Week 14:
(1) WAP to draw cubic Bezier curve.
Week 15:
(1) WAP to clip the lines using Cohen Sutherland line clipping algorithm.
Week 16:
Minor Project Assigned by the faculty
Equipment in the lab for the use of student community. Students need to maintain a proper
decorum in the computer lab. Students must use the equipment with care. Any damage is caused
is punishable.
Students are required to carry their observation / programs book with completed exercises
while entering the lab.
Students are supposed to occupy the machines allotted to them and are not supposed to talk or
make noise in the lab. The allocation is put up on the lab notice board.
Lab can be used in free time / lunch hours by the students who need to use the systems should
take prior permission from the lab in-charge.
Books to be followed:
For theory work :
Computer Graphics, C version by D. Hearn and P.Baker