/Computer-Graphics-Lab

Repository containing Computer-Graphics lab practicals written in C++ language.

Primary LanguageC++

🏷️Computer-Graphics-Lab

📌Lab1: Implement Bresenham’s line drawing algorithm for all types of slope.

📌Lab2: Create and rotate a triangle about the origin and a fixed point.

📌Lab3: Draw a colour cube and spin it using OpenGL transformation matrices.

📌Lab4: Draw a color cube and allow the user to move the camera suitably to experiment with perspective viewing.

📌Lab5: Clip a line using Cohen-Sutherland algorithm.