SlideShare a Scribd company logo
1 of 1
Download to read offline
www.eazynotes.com                    Gursharan Singh Tatla                         Page No. 1


                           BRESENHAM’S CIRCLE ALGORITHM


Bresenham Circle ( Xc, Yc, R):
Description: Here Xc and Yc denote the x – coordinate and y – coordinate of the center of the
circle. R is the radius.


1.     Set X = 0 and Y = R
2.     Set D = 3 – 2R
3.     Repeat While (X < Y)
4.             Call Draw Circle(Xc, Yc, X, Y)
5.             Set X = X + 1
6.             If (D < 0) Then
7.                     D = D + 4X + 6
8.             Else
9.                     Set Y = Y – 1
10.                    D = D + 4(X – Y) + 10
               [End of If]
11.            Call Draw Circle(Xc, Yc, X, Y)
       [End of While]
12.    Exit



Draw Circle (Xc, Yc, X, Y):
1.     Call PutPixel(Xc + X, Yc, + Y)

2.     Call PutPixel(Xc - X, Yc, + Y)

3.     Call PutPixel(Xc + X, Yc, - Y)

4.     Call PutPixel(Xc - X, Yc, - Y)

5.     Call PutPixel(Xc + Y, Yc, + X)

6.     Call PutPixel(Xc - Y, Yc, + X)

7.     Call PutPixel(Xc + Y, Yc, - X)

8.     Call PutPixel(Xc - Y, Yc, - X)

9.     Exit

More Related Content

What's hot

Tugas matematika menemukan konsep persamaan kuadrat
Tugas matematika menemukan konsep persamaan kuadratTugas matematika menemukan konsep persamaan kuadrat
Tugas matematika menemukan konsep persamaan kuadrattrisnasariasih
 
Thi thử toán chuyên ngoại ngữ 2012 lần 1 k da1
Thi thử toán chuyên ngoại ngữ 2012 lần 1 k da1Thi thử toán chuyên ngoại ngữ 2012 lần 1 k da1
Thi thử toán chuyên ngoại ngữ 2012 lần 1 k da1Thế Giới Tinh Hoa
 
ตัวอย่างข้อสอบเก่า วิชาคณิตศาสตร์ ม.6 ปีการศึกษา 2553
ตัวอย่างข้อสอบเก่า วิชาคณิตศาสตร์ ม.6 ปีการศึกษา 2553ตัวอย่างข้อสอบเก่า วิชาคณิตศาสตร์ ม.6 ปีการศึกษา 2553
ตัวอย่างข้อสอบเก่า วิชาคณิตศาสตร์ ม.6 ปีการศึกษา 2553Destiny Nooppynuchy
 
Antiderivatives nako sa calculus official
Antiderivatives nako sa calculus officialAntiderivatives nako sa calculus official
Antiderivatives nako sa calculus officialZerick Lucernas
 
Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...
Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...
Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...MarcelloSantosChaves
 
48 circle part 1 of 2
48 circle part 1 of 248 circle part 1 of 2
48 circle part 1 of 2tutulk
 
BBMP1103 - Sept 2011 exam workshop - part 8
BBMP1103 - Sept 2011 exam workshop - part 8BBMP1103 - Sept 2011 exam workshop - part 8
BBMP1103 - Sept 2011 exam workshop - part 8Richard Ng
 
Chapter 9 differential equation
Chapter 9 differential equationChapter 9 differential equation
Chapter 9 differential equationKarunaGupta1982
 
Introduction to inverse problems
Introduction to inverse problemsIntroduction to inverse problems
Introduction to inverse problemsDelta Pi Systems
 

What's hot (19)

5HBC Conic Solutions
5HBC Conic Solutions5HBC Conic Solutions
5HBC Conic Solutions
 
MS2 POwer Rules
MS2 POwer RulesMS2 POwer Rules
MS2 POwer Rules
 
整卷
整卷整卷
整卷
 
Tugas matematika menemukan konsep persamaan kuadrat
Tugas matematika menemukan konsep persamaan kuadratTugas matematika menemukan konsep persamaan kuadrat
Tugas matematika menemukan konsep persamaan kuadrat
 
Thi thử toán chuyên ngoại ngữ 2012 lần 1 k da1
Thi thử toán chuyên ngoại ngữ 2012 lần 1 k da1Thi thử toán chuyên ngoại ngữ 2012 lần 1 k da1
Thi thử toán chuyên ngoại ngữ 2012 lần 1 k da1
 
ตัวอย่างข้อสอบเก่า วิชาคณิตศาสตร์ ม.6 ปีการศึกษา 2553
ตัวอย่างข้อสอบเก่า วิชาคณิตศาสตร์ ม.6 ปีการศึกษา 2553ตัวอย่างข้อสอบเก่า วิชาคณิตศาสตร์ ม.6 ปีการศึกษา 2553
ตัวอย่างข้อสอบเก่า วิชาคณิตศาสตร์ ม.6 ปีการศึกษา 2553
 
Chapter 16
Chapter 16Chapter 16
Chapter 16
 
Algebra
AlgebraAlgebra
Algebra
 
Antiderivatives nako sa calculus official
Antiderivatives nako sa calculus officialAntiderivatives nako sa calculus official
Antiderivatives nako sa calculus official
 
Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...
Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...
Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...
 
48 circle part 1 of 2
48 circle part 1 of 248 circle part 1 of 2
48 circle part 1 of 2
 
Calculus Final Exam
Calculus Final ExamCalculus Final Exam
Calculus Final Exam
 
1008 ch 10 day 8
1008 ch 10 day 81008 ch 10 day 8
1008 ch 10 day 8
 
BBMP1103 - Sept 2011 exam workshop - part 8
BBMP1103 - Sept 2011 exam workshop - part 8BBMP1103 - Sept 2011 exam workshop - part 8
BBMP1103 - Sept 2011 exam workshop - part 8
 
Regras diferenciacao
Regras diferenciacaoRegras diferenciacao
Regras diferenciacao
 
Lagrange
LagrangeLagrange
Lagrange
 
1511 circle position-conics project
1511 circle position-conics project1511 circle position-conics project
1511 circle position-conics project
 
Chapter 9 differential equation
Chapter 9 differential equationChapter 9 differential equation
Chapter 9 differential equation
 
Introduction to inverse problems
Introduction to inverse problemsIntroduction to inverse problems
Introduction to inverse problems
 

Viewers also liked

Trials I would like to see in transplantation
Trials I would like to see in transplantationTrials I would like to see in transplantation
Trials I would like to see in transplantationtransplantev
 
Concept of aid by trade generic
Concept of aid by trade genericConcept of aid by trade generic
Concept of aid by trade genericFredrik Arvas
 
Entorno Personal de Aprendizaje
Entorno Personal de Aprendizaje Entorno Personal de Aprendizaje
Entorno Personal de Aprendizaje Ehécatl Galeana
 
Trek 4 jours et visite du marché hebdomadaire
Trek 4 jours et visite du marché hebdomadaireTrek 4 jours et visite du marché hebdomadaire
Trek 4 jours et visite du marché hebdomadairele huong
 
Escalade du fansipan 3jours 2nuits
Escalade du fansipan 3jours 2nuitsEscalade du fansipan 3jours 2nuits
Escalade du fansipan 3jours 2nuitsle huong
 
Christmas in Portugal Arnaldo
Christmas in Portugal ArnaldoChristmas in Portugal Arnaldo
Christmas in Portugal Arnaldovchambon
 
正念父母經簡介 6 5_2014
正念父母經簡介 6 5_2014正念父母經簡介 6 5_2014
正念父母經簡介 6 5_2014Richard Lin
 
Anejo d resumen de presupuesto solicitado para 2009
Anejo d resumen de presupuesto solicitado para 2009Anejo d resumen de presupuesto solicitado para 2009
Anejo d resumen de presupuesto solicitado para 2009pablo199
 
Raccolta dati c
Raccolta dati cRaccolta dati c
Raccolta dati cimartini
 

Viewers also liked (9)

Trials I would like to see in transplantation
Trials I would like to see in transplantationTrials I would like to see in transplantation
Trials I would like to see in transplantation
 
Concept of aid by trade generic
Concept of aid by trade genericConcept of aid by trade generic
Concept of aid by trade generic
 
Entorno Personal de Aprendizaje
Entorno Personal de Aprendizaje Entorno Personal de Aprendizaje
Entorno Personal de Aprendizaje
 
Trek 4 jours et visite du marché hebdomadaire
Trek 4 jours et visite du marché hebdomadaireTrek 4 jours et visite du marché hebdomadaire
Trek 4 jours et visite du marché hebdomadaire
 
Escalade du fansipan 3jours 2nuits
Escalade du fansipan 3jours 2nuitsEscalade du fansipan 3jours 2nuits
Escalade du fansipan 3jours 2nuits
 
Christmas in Portugal Arnaldo
Christmas in Portugal ArnaldoChristmas in Portugal Arnaldo
Christmas in Portugal Arnaldo
 
正念父母經簡介 6 5_2014
正念父母經簡介 6 5_2014正念父母經簡介 6 5_2014
正念父母經簡介 6 5_2014
 
Anejo d resumen de presupuesto solicitado para 2009
Anejo d resumen de presupuesto solicitado para 2009Anejo d resumen de presupuesto solicitado para 2009
Anejo d resumen de presupuesto solicitado para 2009
 
Raccolta dati c
Raccolta dati cRaccolta dati c
Raccolta dati c
 

Similar to Bresenham circle-algorithm

Bresenhamcircle derivation
Bresenhamcircle derivationBresenhamcircle derivation
Bresenhamcircle derivationMazharul Islam
 
New Contraction Mappings in Dislocated Quasi - Metric Spaces
New Contraction Mappings in Dislocated Quasi - Metric SpacesNew Contraction Mappings in Dislocated Quasi - Metric Spaces
New Contraction Mappings in Dislocated Quasi - Metric SpacesIJERA Editor
 
Equation of a Circle in standard and general form
Equation of  a Circle in standard and general formEquation of  a Circle in standard and general form
Equation of a Circle in standard and general formAraceliLynPalomillo
 
Assignment For Matlab Report Subject Calculus 2
Assignment For Matlab Report Subject  Calculus 2Assignment For Matlab Report Subject  Calculus 2
Assignment For Matlab Report Subject Calculus 2Laurie Smith
 
Differential Calculus
Differential Calculus Differential Calculus
Differential Calculus OlooPundit
 
Variations on the method of Coleman-Chabauty
Variations on the method of Coleman-ChabautyVariations on the method of Coleman-Chabauty
Variations on the method of Coleman-Chabautymmasdeu
 
2.9 Cartesian products
2.9 Cartesian products2.9 Cartesian products
2.9 Cartesian productsJan Plaza
 
A Generalized Metric Space and Related Fixed Point Theorems
A Generalized Metric Space and Related Fixed Point TheoremsA Generalized Metric Space and Related Fixed Point Theorems
A Generalized Metric Space and Related Fixed Point TheoremsIRJET Journal
 
C2 st lecture 4 handout
C2 st lecture 4 handoutC2 st lecture 4 handout
C2 st lecture 4 handoutfatima d
 
(α ψ)- Construction with q- function for coupled fixed point
(α   ψ)-  Construction with q- function for coupled fixed point(α   ψ)-  Construction with q- function for coupled fixed point
(α ψ)- Construction with q- function for coupled fixed pointAlexander Decker
 
Class xii worksheet (chapters 2,5,6)
Class xii worksheet (chapters 2,5,6)Class xii worksheet (chapters 2,5,6)
Class xii worksheet (chapters 2,5,6)KarunaGupta1982
 
FINAL PROJECT, MATH 251, FALL 2015[The project is Due Mond.docx
FINAL PROJECT, MATH 251, FALL 2015[The project is Due Mond.docxFINAL PROJECT, MATH 251, FALL 2015[The project is Due Mond.docx
FINAL PROJECT, MATH 251, FALL 2015[The project is Due Mond.docxvoversbyobersby
 
Straight-Line-Graphs-Final -2.pptx
Straight-Line-Graphs-Final -2.pptxStraight-Line-Graphs-Final -2.pptx
Straight-Line-Graphs-Final -2.pptxKviskvis
 
Rosser's theorem
Rosser's theoremRosser's theorem
Rosser's theoremWathna
 

Similar to Bresenham circle-algorithm (20)

Circle
CircleCircle
Circle
 
Bresenhamcircle derivation
Bresenhamcircle derivationBresenhamcircle derivation
Bresenhamcircle derivation
 
New Contraction Mappings in Dislocated Quasi - Metric Spaces
New Contraction Mappings in Dislocated Quasi - Metric SpacesNew Contraction Mappings in Dislocated Quasi - Metric Spaces
New Contraction Mappings in Dislocated Quasi - Metric Spaces
 
Equation of a Circle in standard and general form
Equation of  a Circle in standard and general formEquation of  a Circle in standard and general form
Equation of a Circle in standard and general form
 
Bresenham circle
Bresenham circleBresenham circle
Bresenham circle
 
Assignment For Matlab Report Subject Calculus 2
Assignment For Matlab Report Subject  Calculus 2Assignment For Matlab Report Subject  Calculus 2
Assignment For Matlab Report Subject Calculus 2
 
SSA slides
SSA slidesSSA slides
SSA slides
 
Presentation on calculus
Presentation on calculusPresentation on calculus
Presentation on calculus
 
Differential Calculus
Differential Calculus Differential Calculus
Differential Calculus
 
Variations on the method of Coleman-Chabauty
Variations on the method of Coleman-ChabautyVariations on the method of Coleman-Chabauty
Variations on the method of Coleman-Chabauty
 
2.9 Cartesian products
2.9 Cartesian products2.9 Cartesian products
2.9 Cartesian products
 
CIRCLES.pptx
CIRCLES.pptxCIRCLES.pptx
CIRCLES.pptx
 
A Generalized Metric Space and Related Fixed Point Theorems
A Generalized Metric Space and Related Fixed Point TheoremsA Generalized Metric Space and Related Fixed Point Theorems
A Generalized Metric Space and Related Fixed Point Theorems
 
C2 st lecture 4 handout
C2 st lecture 4 handoutC2 st lecture 4 handout
C2 st lecture 4 handout
 
Linear equations 2-2 a graphing and x-y intercepts
Linear equations   2-2 a graphing and x-y interceptsLinear equations   2-2 a graphing and x-y intercepts
Linear equations 2-2 a graphing and x-y intercepts
 
(α ψ)- Construction with q- function for coupled fixed point
(α   ψ)-  Construction with q- function for coupled fixed point(α   ψ)-  Construction with q- function for coupled fixed point
(α ψ)- Construction with q- function for coupled fixed point
 
Class xii worksheet (chapters 2,5,6)
Class xii worksheet (chapters 2,5,6)Class xii worksheet (chapters 2,5,6)
Class xii worksheet (chapters 2,5,6)
 
FINAL PROJECT, MATH 251, FALL 2015[The project is Due Mond.docx
FINAL PROJECT, MATH 251, FALL 2015[The project is Due Mond.docxFINAL PROJECT, MATH 251, FALL 2015[The project is Due Mond.docx
FINAL PROJECT, MATH 251, FALL 2015[The project is Due Mond.docx
 
Straight-Line-Graphs-Final -2.pptx
Straight-Line-Graphs-Final -2.pptxStraight-Line-Graphs-Final -2.pptx
Straight-Line-Graphs-Final -2.pptx
 
Rosser's theorem
Rosser's theoremRosser's theorem
Rosser's theorem
 

Recently uploaded

Sirmaur Call Girls Book Now 8617697112 Top Class Pondicherry Escort Service A...
Sirmaur Call Girls Book Now 8617697112 Top Class Pondicherry Escort Service A...Sirmaur Call Girls Book Now 8617697112 Top Class Pondicherry Escort Service A...
Sirmaur Call Girls Book Now 8617697112 Top Class Pondicherry Escort Service A...Nitya salvi
 
FULL NIGHT — 9999894380 Call Girls In Shivaji Enclave | Delhi
FULL NIGHT — 9999894380 Call Girls In Shivaji Enclave | DelhiFULL NIGHT — 9999894380 Call Girls In Shivaji Enclave | Delhi
FULL NIGHT — 9999894380 Call Girls In Shivaji Enclave | DelhiSaketCallGirlsCallUs
 
FULL NIGHT — 9999894380 Call Girls In Mahipalpur | Delhi
FULL NIGHT — 9999894380 Call Girls In Mahipalpur | DelhiFULL NIGHT — 9999894380 Call Girls In Mahipalpur | Delhi
FULL NIGHT — 9999894380 Call Girls In Mahipalpur | DelhiSaketCallGirlsCallUs
 
Storyboard short: Ferrarius Tries to Sing
Storyboard short: Ferrarius Tries to SingStoryboard short: Ferrarius Tries to Sing
Storyboard short: Ferrarius Tries to SingLyneSun
 
DELHI NCR —@9711106444 Call Girls In Majnu Ka Tilla (MT)| Delhi
DELHI NCR —@9711106444 Call Girls In Majnu Ka Tilla (MT)| DelhiDELHI NCR —@9711106444 Call Girls In Majnu Ka Tilla (MT)| Delhi
DELHI NCR —@9711106444 Call Girls In Majnu Ka Tilla (MT)| Delhidelhimunirka444
 
Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...
Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...
Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...Jeremy Casson
 
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶delhimunirka444
 
Verified # 971581275265 # Indian Call Girls In Deira By International City Ca...
Verified # 971581275265 # Indian Call Girls In Deira By International City Ca...Verified # 971581275265 # Indian Call Girls In Deira By International City Ca...
Verified # 971581275265 # Indian Call Girls In Deira By International City Ca...home
 
Bobbie goods coloring book 81 pag_240127_163802.pdf
Bobbie goods coloring book 81 pag_240127_163802.pdfBobbie goods coloring book 81 pag_240127_163802.pdf
Bobbie goods coloring book 81 pag_240127_163802.pdfMARIBEL442158
 
FULL NIGHT — 9999894380 Call Girls In New Ashok Nagar | Delhi
FULL NIGHT — 9999894380 Call Girls In New Ashok Nagar | DelhiFULL NIGHT — 9999894380 Call Girls In New Ashok Nagar | Delhi
FULL NIGHT — 9999894380 Call Girls In New Ashok Nagar | DelhiSaketCallGirlsCallUs
 
Jeremy Casson - Top Tips for Pottery Wheel Throwing
Jeremy Casson - Top Tips for Pottery Wheel ThrowingJeremy Casson - Top Tips for Pottery Wheel Throwing
Jeremy Casson - Top Tips for Pottery Wheel ThrowingJeremy Casson
 
Admirable # 00971529501107 # Call Girls at dubai by Dubai Call Girl
Admirable # 00971529501107 # Call Girls at dubai by Dubai Call GirlAdmirable # 00971529501107 # Call Girls at dubai by Dubai Call Girl
Admirable # 00971529501107 # Call Girls at dubai by Dubai Call Girlhome
 
Young⚡Call Girls in Uttam Nagar Delhi >༒9667401043 Escort Service
Young⚡Call Girls in Uttam Nagar Delhi >༒9667401043 Escort ServiceYoung⚡Call Girls in Uttam Nagar Delhi >༒9667401043 Escort Service
Young⚡Call Girls in Uttam Nagar Delhi >༒9667401043 Escort Servicesonnydelhi1992
 
FULL NIGHT — 9999894380 Call Girls In Najafgarh | Delhi
FULL NIGHT — 9999894380 Call Girls In Najafgarh | DelhiFULL NIGHT — 9999894380 Call Girls In Najafgarh | Delhi
FULL NIGHT — 9999894380 Call Girls In Najafgarh | DelhiSaketCallGirlsCallUs
 
AaliyahBell_themist_v01.pdf .
AaliyahBell_themist_v01.pdf             .AaliyahBell_themist_v01.pdf             .
AaliyahBell_themist_v01.pdf .AaliyahB2
 

Recently uploaded (20)

Dubai Call Girls Service # +971588046679 # Call Girls Service In Dubai # (UAE)
Dubai Call Girls Service # +971588046679 # Call Girls Service In Dubai # (UAE)Dubai Call Girls Service # +971588046679 # Call Girls Service In Dubai # (UAE)
Dubai Call Girls Service # +971588046679 # Call Girls Service In Dubai # (UAE)
 
Dubai Call Girl Number # 0522916705 # Call Girl Number In Dubai # (UAE)
Dubai Call Girl Number # 0522916705 # Call Girl Number In Dubai # (UAE)Dubai Call Girl Number # 0522916705 # Call Girl Number In Dubai # (UAE)
Dubai Call Girl Number # 0522916705 # Call Girl Number In Dubai # (UAE)
 
Sirmaur Call Girls Book Now 8617697112 Top Class Pondicherry Escort Service A...
Sirmaur Call Girls Book Now 8617697112 Top Class Pondicherry Escort Service A...Sirmaur Call Girls Book Now 8617697112 Top Class Pondicherry Escort Service A...
Sirmaur Call Girls Book Now 8617697112 Top Class Pondicherry Escort Service A...
 
FULL NIGHT — 9999894380 Call Girls In Shivaji Enclave | Delhi
FULL NIGHT — 9999894380 Call Girls In Shivaji Enclave | DelhiFULL NIGHT — 9999894380 Call Girls In Shivaji Enclave | Delhi
FULL NIGHT — 9999894380 Call Girls In Shivaji Enclave | Delhi
 
FULL NIGHT — 9999894380 Call Girls In Mahipalpur | Delhi
FULL NIGHT — 9999894380 Call Girls In Mahipalpur | DelhiFULL NIGHT — 9999894380 Call Girls In Mahipalpur | Delhi
FULL NIGHT — 9999894380 Call Girls In Mahipalpur | Delhi
 
Storyboard short: Ferrarius Tries to Sing
Storyboard short: Ferrarius Tries to SingStoryboard short: Ferrarius Tries to Sing
Storyboard short: Ferrarius Tries to Sing
 
Pakistani Bur Dubai Call Girls # +971528960100 # Pakistani Call Girls In Bur ...
Pakistani Bur Dubai Call Girls # +971528960100 # Pakistani Call Girls In Bur ...Pakistani Bur Dubai Call Girls # +971528960100 # Pakistani Call Girls In Bur ...
Pakistani Bur Dubai Call Girls # +971528960100 # Pakistani Call Girls In Bur ...
 
DELHI NCR —@9711106444 Call Girls In Majnu Ka Tilla (MT)| Delhi
DELHI NCR —@9711106444 Call Girls In Majnu Ka Tilla (MT)| DelhiDELHI NCR —@9711106444 Call Girls In Majnu Ka Tilla (MT)| Delhi
DELHI NCR —@9711106444 Call Girls In Majnu Ka Tilla (MT)| Delhi
 
Deira Call Girls # 0588312479 # Call Girls In Deira Dubai ~ (UAE)
Deira Call Girls # 0588312479 # Call Girls In Deira Dubai ~ (UAE)Deira Call Girls # 0588312479 # Call Girls In Deira Dubai ~ (UAE)
Deira Call Girls # 0588312479 # Call Girls In Deira Dubai ~ (UAE)
 
Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...
Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...
Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...
 
UAE Call Girls # 0528675665 # Independent Call Girls In Dubai ~ (UAE)
UAE Call Girls # 0528675665 # Independent Call Girls In Dubai ~ (UAE)UAE Call Girls # 0528675665 # Independent Call Girls In Dubai ~ (UAE)
UAE Call Girls # 0528675665 # Independent Call Girls In Dubai ~ (UAE)
 
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
(9711106444 )🫦#Sexy Desi Call Girls Noida Sector 4 Escorts Service Delhi 🫶
 
Verified # 971581275265 # Indian Call Girls In Deira By International City Ca...
Verified # 971581275265 # Indian Call Girls In Deira By International City Ca...Verified # 971581275265 # Indian Call Girls In Deira By International City Ca...
Verified # 971581275265 # Indian Call Girls In Deira By International City Ca...
 
Bobbie goods coloring book 81 pag_240127_163802.pdf
Bobbie goods coloring book 81 pag_240127_163802.pdfBobbie goods coloring book 81 pag_240127_163802.pdf
Bobbie goods coloring book 81 pag_240127_163802.pdf
 
FULL NIGHT — 9999894380 Call Girls In New Ashok Nagar | Delhi
FULL NIGHT — 9999894380 Call Girls In New Ashok Nagar | DelhiFULL NIGHT — 9999894380 Call Girls In New Ashok Nagar | Delhi
FULL NIGHT — 9999894380 Call Girls In New Ashok Nagar | Delhi
 
Jeremy Casson - Top Tips for Pottery Wheel Throwing
Jeremy Casson - Top Tips for Pottery Wheel ThrowingJeremy Casson - Top Tips for Pottery Wheel Throwing
Jeremy Casson - Top Tips for Pottery Wheel Throwing
 
Admirable # 00971529501107 # Call Girls at dubai by Dubai Call Girl
Admirable # 00971529501107 # Call Girls at dubai by Dubai Call GirlAdmirable # 00971529501107 # Call Girls at dubai by Dubai Call Girl
Admirable # 00971529501107 # Call Girls at dubai by Dubai Call Girl
 
Young⚡Call Girls in Uttam Nagar Delhi >༒9667401043 Escort Service
Young⚡Call Girls in Uttam Nagar Delhi >༒9667401043 Escort ServiceYoung⚡Call Girls in Uttam Nagar Delhi >༒9667401043 Escort Service
Young⚡Call Girls in Uttam Nagar Delhi >༒9667401043 Escort Service
 
FULL NIGHT — 9999894380 Call Girls In Najafgarh | Delhi
FULL NIGHT — 9999894380 Call Girls In Najafgarh | DelhiFULL NIGHT — 9999894380 Call Girls In Najafgarh | Delhi
FULL NIGHT — 9999894380 Call Girls In Najafgarh | Delhi
 
AaliyahBell_themist_v01.pdf .
AaliyahBell_themist_v01.pdf             .AaliyahBell_themist_v01.pdf             .
AaliyahBell_themist_v01.pdf .
 

Bresenham circle-algorithm

  • 1. www.eazynotes.com Gursharan Singh Tatla Page No. 1 BRESENHAM’S CIRCLE ALGORITHM Bresenham Circle ( Xc, Yc, R): Description: Here Xc and Yc denote the x – coordinate and y – coordinate of the center of the circle. R is the radius. 1. Set X = 0 and Y = R 2. Set D = 3 – 2R 3. Repeat While (X < Y) 4. Call Draw Circle(Xc, Yc, X, Y) 5. Set X = X + 1 6. If (D < 0) Then 7. D = D + 4X + 6 8. Else 9. Set Y = Y – 1 10. D = D + 4(X – Y) + 10 [End of If] 11. Call Draw Circle(Xc, Yc, X, Y) [End of While] 12. Exit Draw Circle (Xc, Yc, X, Y): 1. Call PutPixel(Xc + X, Yc, + Y) 2. Call PutPixel(Xc - X, Yc, + Y) 3. Call PutPixel(Xc + X, Yc, - Y) 4. Call PutPixel(Xc - X, Yc, - Y) 5. Call PutPixel(Xc + Y, Yc, + X) 6. Call PutPixel(Xc - Y, Yc, + X) 7. Call PutPixel(Xc + Y, Yc, - X) 8. Call PutPixel(Xc - Y, Yc, - X) 9. Exit