Home      Affiliated Colleges      Course content      First Sem     Second Sem     Third Sem     Fourth Sem     Fifth Sem     Sixth Sem     Seventh Sem     Eighth Sem     Lab report 4th sem     Contact    

Monday, September 19, 2011

Computer Graphics Question from Patan Multiple Campus:


Tribhuvan University

Patan Multiple Campus

Patan Dhoka , Lalitpur

B.Sc.Computer  III, Graphics Lab Assignments





Student should mention the major theory applied in computation in the program algorithms, function structures as well as conclusion of the program in their report.



1.      Write a simple program in C that draws the point, line, circle, rectangle, ellipse, arc , bar, and display each image one after another.



2.      Write a program that displays a circle and rectangle which should be filled with all different possible colors and different available filling patterns one by one in certain interval of time.



3.      Draw a circle at the centre of screen and fill it with a colored pattern, move the circle at upper left corner of the screen ,when it reaches there move it horizontally until it reaches to the top right corner then move it diagonally towards lower left corner then again horizontally to lower right corner and again move diagonally up to center. Repeat the process until user hits a key.



4.      Describe DDA line Algorithm and implement the algorithm in C.



5.      Explain the Bresenham's Line algorithm and implement it in C.



6.      Write algorithm for mid point circle algorithm. Implement it in C.



7.      Write a program that takes input for different vertices of 2D objects, store them in a matrix V and input a translation matrix T. Draw the 2D object that  stored in matrix V and apply the translation to redraw the translated image.



8.      Write  a program for scaling transformation of a 2D object given by a vertices matrix V with scaling factors (sx,sy).



9.      Write a program that displays the name of your college scrolling at the center of the screen with changing color with different available fonts.



10.  From the center of display screen, draw a line with  length 100 pixels and rotate the line clockwise that simulates a second hand of a clock.



11.  Draw an elliptical path( ellipse) centered at the center of screen and move a small circular object along this path that looks like  a planet moving on its orbit.




1 comment:

^ Scroll to Top Related Posts with Thumbnails ^ Go to Top