LIST OF PROGRAMS FOR CG Lab
LIST OF PROGRAMS FOR CG Lab
List of Programs
1. Using different graphics functions available for text formatting, write a program for
displaying text in different sizes, different colors, font styles
2. Write a program to divide screen into four region and draw circle, rectangle, arc and
ellipse.
3. Implement the DDA algorithm for drawing lines.
4. Write a program to input the line coordinates from the user to generate a line using
Bresenham’s algorithm. (programmers are expected to shift the origin to the center of
the screen and divide the screen into required quadrants)
5. Write a program to draw a circle using Midpoint circle drawing algorithm and
Bresenham’s circle drawing algorithm.
7. Write a program to draw two concentric circles using any circle drawing algorithm.
8. Write a program to draw a rectangle. The four vertices of it should be entered by the
end user.
11. Write a program to draw different shapes like polygons, stars, triangles, ellipses,
squares, rectangles etc.
12. Write a program to draw any 2-D object and perform the transformations on it
according to the input parameters from the user, namely: Translation, Rotation or
Scaling.
13. Write a program to draw any 2-D object and perform the transformations on it
according to the input parameters from the user, namely: Shearing and Reflection.
14. Write a program to perform clipping on a line against the clip window using cohen
sutherland line clipping algorithm. The output must be twofold showing the before
clipping and after clipping images
19. Write a program to draw a concave polygon and fill it with desired color using scan
fill algorithm.
22. Write a program to make a digital clock using C/C++ in computer graphics.
23. Write a program to draw a Pie Chart using C/C++ in Computer Graphics.
25. Write a program to implement bouncing ball animation in C/C++ using computer
graphics.
26. Write a program to implement moving car animation in C/C++ using computer
graphics.
27. Write a program to draw a smiling face that appears at random positions on the screen
using Computer Graphics animation.
34. Write a program to draw any 3-D object and perform the translation on it according to
the input parameters from the user.
35. Write a program to draw any 3-D object and perform the rotation on it according to
the input parameters from the user.
36. Write a program to draw any 3-D object and perform the scaling on it according to
the input parameters from the user.