Skip to content

Repository files navigation

CSE222: Computer Graphics Lab

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.


🧪 Experiments:

2. Cohen–Sutherland Line Clipping Algorithm

  • Implementation of the Cohen–Sutherland algorithm to clip lines within a rectangular clipping window.

3. Sutherland–Hodgman Polygon Clipping Algorithm

  • Implementation of the Sutherland–Hodgman algorithm for clipping polygons against a rectangular clipping region.

4. Bézier Curve Generation

  • Constructed and visualized Bézier curves using control points (4) and the Bernstein polynomial formulation.

5. 2D Geometric Transformations

  • Implemented Translation, Rotation, and Scaling transformations on 2D objects.

6. Bresenham Line Drawing Algorithm

  • Implemented the Bresenham algorithm for efficient line generation using integer arithmetic.

⚪ 7. Bresenham Circle Drawing Algorithm

  • Implemented Bresenham’s circle generation concept for efficient circle drawing using floating-point operations.

❄️ 8. Snowflake Pattern using Fractal Geometry

  • Generated a fractal snowflake pattern (Koch curve-based) using recursive geometry principles.

Releases

Packages

Contributors

Languages