This document contains the assignment instructions for a computer graphics lab. The assignment asks the student to:
1. Draw a line on a 512x512 display window using the standard line equation algorithm and the Digital Differential Analyzer (DDA) line drawing algorithm, and note the time taken for each.
2. Use the DDA line drawing algorithm to draw several geometric shapes, including a triangle, square, and pentagon.
3. The document provides the name, roll number, and batch of the submitting student.
This document contains the assignment instructions for a computer graphics lab. The assignment asks the student to:
1. Draw a line on a 512x512 display window using the standard line equation algorithm and the Digital Differential Analyzer (DDA) line drawing algorithm, and note the time taken for each.
2. Use the DDA line drawing algorithm to draw several geometric shapes, including a triangle, square, and pentagon.
3. The document provides the name, roll number, and batch of the submitting student.
This document contains the assignment instructions for a computer graphics lab. The assignment asks the student to:
1. Draw a line on a 512x512 display window using the standard line equation algorithm and the Digital Differential Analyzer (DDA) line drawing algorithm, and note the time taken for each.
2. Use the DDA line drawing algorithm to draw several geometric shapes, including a triangle, square, and pentagon.
3. The document provides the name, roll number, and batch of the submitting student.
Roll no. – 2021BCS-045 Batch – BCS2021 Q1a: Create a display window of resolution of 512x512 on your computer screen. On that display window, draw the following structure implementing:
✓ Standard line equation
Output: ✓ Digital Differential Analyzer (DDA) line drawing algorithm Output: Q1b: For each of the above cases (algorithms), note dawn the time taken by each of the algorithms
✓ Standard line equation
Output: ✓ Digital Differential Analyzer (DDA) line drawing algorithm Output: Q2: Use DDA line drawing algorithm to drawn the following geometrical shapes: Output: Output: Output: