DDA Line Algorithm Experiment: Mid-Point Circle Algorithm, Assignments of Database Management Systems (DBMS)

An experiment conducted by ganesh kumar, a bca student, to draw a circle using the mid-point algorithm in computer graphics lab (subject code: 20cap-316). The steps of the experiment, the code implementation, and the learning outcomes.

Typology: Assignments

2021/2022

Uploaded on 10/14/2022

JOHNPRICW
JOHNPRICW 🇮🇳

1 document

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Experiment: DDA LINE ALGORITHM
Student Name:GANESH KUMAR UID:20BCA1534
Branch:UIC-BCA Section/Group: BCA-3-/A
Semester: 5th Date of Performance:31--Aug
Subject Name: Computer graphicsLabSubject Code: 20CAP-316
AIM: Draw Circle using Mid Point Algorithm:
A. Task to be done: Scan convert a circle with center (30,40) and radius 8 using mid-
point circle algorithm
Steps of Experiment:
Step1. Put x=0 ,y=r in equation 2
Were we have p=1-r
Step2.Repeat steps while x ≤ y
      Plot (x, y)
      If (p<0)
Then set p = p + 2x + 3
Else
      p = p + 2(x-y)+5
      y =y - 1 (end if)
      x =x+1 (end loop)
Step3.END.
pf3
pf4

Partial preview of the text

Download DDA Line Algorithm Experiment: Mid-Point Circle Algorithm and more Assignments Database Management Systems (DBMS) in PDF only on Docsity!

Experiment: DDA LINE ALGORITHM

Student Name: GANESH KUMAR UID:20BCA Branch: UIC-BCA Section/Group: BCA-3-/A Semester: 5th Date of Performance:31--Aug Subject Name: Computer graphics Lab Subject Code: 20CAP- AIM: Draw Circle using Mid Point Algorithm:

A. Task to be done: Scan convert a circle with center (30,40) and radius 8 using mid-

point circle algorithm

Steps of Experiment:

Step1. Put x=0 ,y=r in equation 2 Were we have p=1-r Step2.Repeat steps while x ≤ y Plot (x, y) If (p<0) Then set p = p + 2x + 3 Else p = p + 2(x-y)+ y =y - 1 (end if) x =x+1 (end loop) Step3.END.

B.CODE IS HERE: