CS2405 COMPUTER GRAPHICS LAB
1. Implementation of Bresenhams Algorithm – Line, Circle, Ellipse.
2. Implementation of Line, Circle and ellipse attributes.
3. Two Dimensional transformations - Translation, Rotation, Scaling, Reflection,
Shear.
4. Composite 2D Transformations.
5. Cohen Sutherland 2D line clipping and Windowing.
6. Sutherland – Hodgeman Polygon clipping Algorithm.
7. Three dimensional transformations - Translation, Rotation, Scaling.
8. Composite 3D transformations.
9. Drawing three dimensional objects and Scenes.
10. Generating Fractal images.
TOTAL: 60 PERIODS
Requirement for a batch of 30 students
S. No. Description of the Equipment Quantity Required
1. Hardware – Pentium PC Desktops 30 Nos.
2. Software – Turbo C (Freely download) 30 User License
List of Experiments
[Link] Title Page No.
1.a Bresenham’s algorithm for Line drawing 1
1.b Bresenham’s algorithm to draw a circle 4
1.c Bresenham's algorithm for ellipse 7
2. Attributes of line, circle, ellipse 11
3.a Two dimensional transformation – translation 15
3.b Two dimensional transformation – rotation 18
3.c Two dimensional transformation – scaling 21
3.d Two dimensional transformation – reflection 24
3.e Two dimensional transformation – shearing 28
4. Composite 2d transformations 31
5.a Cohen sutherland 2d line clipping algorithm 36
5.b Cohen sutherland windowing algorithm 41
6. Sutherland - hodgeman polygon clipping algorithm 44
7. Three dimensional transformations 52
8. Composite three dimensional transformations 58
9. Drawing three dimensional objects and scenes 61
10. Generating fractal images 65
ADDITIONAL EXPERIMENTS
[Link] Title Page No.
11. Windowing to Viewport Mapping 69
12. RGB To HSV Color Models 72
13. HSV To RGB Color Models 75