# CG This repository contains notes and codes for **Computer Graphics.** --- ## Index ### Lab Notes CGL 1. [Koch and Snowflake Algorithms](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-notes/CGL%20-%20Transformation.pdf) 2. [Transformation Algorithms](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-notes/CGL%20Koch%20and%20Snowflake%20Curves.pdf) ### [Lab Manual](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-manual/CGL%20Lab%20Manual.pdf) - [Assignment Solutions 1-7 (ALL)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/assignments/CGL%20Assignments%20%281-7%29.pdf) ### Codes #### Digital Differential Analyzer (DDA) > Digital Differential Analyzer (DDA) is a line-drawing algorithm for digital displays, using incremental calculations to plot points between endpoints. 1. [Line](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/DDA-line.cpp) 2. [Triangle](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/DDA-triangle.cpp) 3. [Circle](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/DDA-circle.cpp) #### Cohen-Sutherland 1. [Cohen-Sutherland (Using Inbuilt Function)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/CohenSutherland%28Using%20built-in%29.cpp) 2. [Cohen-Sutherland (Using DDA Line Drawing Algorithm)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/CohenSutherland%28UsingDDA%29.cpp) #### Transformation 1. [Translation, scaling, rotation](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Transformation.cpp) #### Curves 1. [Hilbert's Curve](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/HilbertCurve.cpp) 2. [Koch Curve](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Koch-Curve.cpp) 3. [Snowflake Curve](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Snowflake.cpp) ### Notes 1. [Unit 1 - Graphics Primitives and Scan Conversion Algorithms](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/notes/Unit%201) 2. [Unit 2 - Polygon, Windowing and Clipping](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/notes/Unit%202) 3. [Unit 3 - 2D, 3D Transformations and Projections](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/notes/Unit%203) 5. [Unit 5 - Curves and Fractals](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/notes/Unit%205) ### Question Papers 1. [IN-SEM](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/question-papers/IN-SEM) 2. [END-SEM](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/question-papers/END-SEM) --- Maintained by: - [notkshitij](https://git.kska.io/notkshitij) - [TanmaySpamzzz](https://git.kska.io/TanmaySpamzzz) - [shh_itsourlittlesecret (Afan)](https://git.kska.io/shh_itsourlittlesecret) - [Kalaskar_admin03](https://git.kska.io/Kalaskar_admin03/)