This repository contains the lab works implemented as part of the CSE222: Computer Graphics Lab course.
All experiments are implemented in Python, using Matplotlib for visualization.
- Implementation of the Cohen–Sutherland algorithm to clip lines within a rectangular clipping window.
- Implementation of the Sutherland–Hodgman algorithm for clipping polygons against a rectangular clipping region.
- Constructed and visualized Bézier curves using control points (4) and the Bernstein polynomial formulation.
- Implemented Translation, Rotation, and Scaling transformations on 2D objects.
- Implemented the Bresenham algorithm for efficient line generation using integer arithmetic.
- Implemented Bresenham’s circle generation concept for efficient circle drawing using floating-point operations.
- Generated a fractal snowflake pattern (Koch curve-based) using recursive geometry principles.