Back

README

DSC-09: Computer Graphics - Practicals

Course

Welcome to the collection of practical assignments for the Computer Graphics course. This repository contains implementations for various Computer Graphics algorithms using C++.


🛠️ Library Setup

This project uses graphics.h (Borland Graphics Interface). To run these programs in Visual Studio Code, you need to set up MinGW and the necessary graphics libraries.

Quick Setup:

  1. Install MinGW.
  2. Copy graphics.h and winbgim.h to include folder.
  3. Copy libbgi.a to lib folder.
  4. Link with -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32.

👉 Click here for detailed Setup Instructions


📅 List of Practical

  1. Write a program to implement Bresenham’s line drawing algorithm.
  2. Write a program to implement mid-point circle drawing algorithm.
  3. Write a program to clip a line using Cohen and Sutherland line clipping algorithm.
  4. Write a program to clip a polygon using Sutherland Hodgeman algorithm.
  5. Write a program to fill a polygon using Scan line fill algorithm.
  6. Write a program to apply various 2D transformations on a 2D object (use homogenous Coordinates).
  7. Write a program to apply various 3D transformations on a 3D object and then apply parallel and perspective projection on it.
  8. Write a program to draw these curve:

1. Bezier curve.

2. Hermite curve.

  1. Write a program to implement Digital Differential Analyzer (DDA) Algorithm.%20Algorithm.cpp)

<p align="right">

<i>Developed with ❤️ by <a href="https://github.com/16ratneshkumar">16ratneshkumar</a></i>

</p>