You are on page 1of 21

COMPUTER GRAPHICS LAB

ASSIGNMENT-2

Submitted by - Monis Khan


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:

You might also like