This repository contains source code and resources related to the lab sessions for the Computer Graphics course in the 3rd year of the Computer Engineering program of the Institute of Engineering, Pulchowk Campus, Tribhuvan University.
This repository includes implementations and examples for the following topics:
Digital Differential Analyzer (DDA) for line generation.
Efficient rasterization of lines using integer calculations.
Algorithm for drawing circles using the midpoint method.
Algorithm for drawing ellipses using the midpoint method.
Line clipping algorithm to handle lines outside the clipping window.
Efficient line clipping algorithm using parametric equations.
Implementation of 2D geometric transformations including translation, rotation, scaling, and shearing.
Implementation of 2D geometric transformations including translation, rotation, scaling, and shearing.