This repository contains implementations of various graphics algorithms using C++ and the graphics.h library. The project includes algorithms for line clipping, polygon filling, fractal generation, and more.
- Scanline Polygon Fill (prac1.cpp)
- Cohen-Sutherland Line Clipping (prac2.cpp)
- DDA Line Drawing and Bresenham's Circle Drawing (prac3.cpp)
- 2D Transformations (Scaling, Translation, Rotation) (prac4.cpp)
- Hilbert Curve Generation (prac5.cpp)
- Bouncing Ball using Sine Wave (prac7.cpp)
g++ Home/src/prac1.cpp -o Home/build/prac1.exe -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32Home/build/prac1.exe- graphics.h
- GCC or compatible C++ compiler