0% found this document useful (0 votes)
71 views3 pages

LIST OF PROGRAMS FOR CG Lab

The document lists 37 programs related to computer graphics. The programs cover a range of 2D and 3D drawing algorithms including lines, circles, transformations, clipping, animation, and graphs. Key algorithms mentioned include DDA, Bresenham, midpoint circle, transformations like translation, rotation, scaling, shearing and reflection, Cohen-Sutherland and Liang-Barsky line clipping. Programs also involve user input for shapes, animation and generating various graphs and images.

Uploaded by

Tushar Verma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views3 pages

LIST OF PROGRAMS FOR CG Lab

The document lists 37 programs related to computer graphics. The programs cover a range of 2D and 3D drawing algorithms including lines, circles, transformations, clipping, animation, and graphs. Key algorithms mentioned include DDA, Bresenham, midpoint circle, transformations like translation, rotation, scaling, shearing and reflection, Cohen-Sutherland and Liang-Barsky line clipping. Programs also involve user input for shapes, animation and generating various graphs and images.

Uploaded by

Tushar Verma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Computer Graphics 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.

6. Write a program to generate a complete moving wheel using 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.

9. Write a program to draw a bar graph using C/C++ in computer graphics.

10. Write a program to draw an ellipse.

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

15. Write a program to implement Liang-Barsky 2D Line clipping.


16. Write a program to draw a house like figure and perform the following operations. a.
Scaling about the origin followed by translation. b. Scaling with reference to an
arbitrary point.

17. Write a  program inscribed and circumscribed circles in triangle.

18. Write a program for drawing a following pattern(diamond in rectangle).

19.   Write a program to draw a concave polygon and fill it with desired color using scan
fill algorithm.

20. Write a program to generate Hilbert Curve using concept of fractals.

21. Draw a moving cycle using computer graphics programming in C/C++.

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.

24. Write a program that performs a countdown for 30 seconds.

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.

28. Write a C program to generate a captcha which is a random string generated.

29. Write a program to draw a 3-D Bar Graph.

30. Write a C program to draw a tan graph using graphics.

31. Write a C program to draw a Sine wave graph using graphics.

32. Write a C program to draw a Cosine wave graph using graphics.

33. Write a C program to draw stars in night sky using graphics.

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.

37. Write a program to draw Sunrise and Sunset.

You might also like