0% found this document useful (0 votes)
41 views2 pages

CG Practicallist

This document outlines a list of practical assignments for a Computer Graphics course. It includes 13 assignments that involve implementing various graphics functions and algorithms in C programming language. The assignments cover basic graphics functions, line drawing, circle and ellipse drawing using mouse input, polygon filling algorithms, transformations, and clipping algorithms. It also includes two mini projects involving animating a bouncing ball and rotating an object with speed control. Students are expected to implement all programs using the C language graphics library functions.

Uploaded by

themyac
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views2 pages

CG Practicallist

This document outlines a list of practical assignments for a Computer Graphics course. It includes 13 assignments that involve implementing various graphics functions and algorithms in C programming language. The assignments cover basic graphics functions, line drawing, circle and ellipse drawing using mouse input, polygon filling algorithms, transformations, and clipping algorithms. It also includes two mini projects involving animating a bouncing ball and rotating an object with speed control. Students are expected to implement all programs using the C language graphics library functions.

Uploaded by

themyac
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 2

SARVAJANIK COLLEGE OF ENGINEERING AND TECHNOLOGY

COMPUTER ENGINEERING DEPARTMENT


B.E. III (COMPUTER ENGINEERING) SEM-VI

COMPUTER GRAPHICS
PRACTICALS LIST 1

Implement the C program that demonstrates the use of the following Graphics library functions - initgraph, detectgraph, closegraph, cleardevice, getgraphicsdriver, putpixel, getpixel, getmaxx, getmaxy, line, circle, rectangle, ellipse, arc, drawpoly, setfillstyle, fillpoly, outtextxy, pieslice, setcolor, getcolor, setbkcolor, getbkcolor, outtextxy, imagesize, getimage, putimage etc. II Implement the C program that demonstrates the different line styles and thickness using setlinestyle graphic library function. III Implement the C program that fills the ellipse with different fill patterns using fillellipse and setfillstyle Graphics library functions.
I I
II

Implement the C program that draws line using line library function after taking end-points as an input by mouse.
Implement the C program that draws circle using circle library function whose center is taken

III 3

by mouse as an input. Implement the C program that draws ellipse using ellipse library function whose center is taken by mouse as an input.

Implement following Line drawing Algorithms (with mouse): DDA Algorithm Bresenham Algorithm Implement Midpoint Circle Algorithm (with mouse). Implement the program that displays (x, y) co-ordinates of mouse movement within the restricted viewport on the screen with the help 8086 software interrupt interfaces. Implement Midpoint Ellipse Algorithm (with 8086 software interrupt interfaces). Implement following Polygon filling Algorithms with seed fill technique using recursion and stack: Boundary Fill Algorithm Flood Fill Algorithm Implement the following transformations for 2D objects ( like line, triangle and rectangle etc.): Translation Rotations Scaling Implement Clipping Algorithms: Sutherland Cohen Clipping Algorithm Midpoint Clipping Algorithm Sutherland-Hodgmen Polygon Clipping Algorithm

4 5

6 7

Mini Projects : 1 I Implement a program in which the ball is bouncing in its own position. II Implement a program in which the filled ball starts bouncing from a given position hits the wall
and comes back to the original position. The path followed by the ball during the forward and
2

the backward motions are different. Implement the program for rotating PAWAN-CHAKKI with speed control.

Note: All programs should be implemented in .C language.

You might also like