title: Where am I going wrong in Bresenham circle drawing algorithm?
body: <p>Well, this sounds ridiculous but its now more than ten times I am trying to see what I am doing wrong in this example. I have seen the tutorial on the web, and the example is shown below:</p>
  
  <p><a href="https://i.stack.imgur.com/QAWm5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QAWm5.png" alt="enter image description here"></a></p>
  
  <p>At stage <strong>3</strong>: Are we not supposed to decrement <code>Yi</code> to 9? I am saying this because the decision variable <code>Pi=13</code> satisfying the condition that <code>if Pi&gt;=0, Yi +1=Yi-1</code> as shown below:<a href="https://i.stack.imgur.com/MAAM0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MAAM0.png" alt="enter image description here"></a></p>
  
  <p><strong>Question:</strong> Where am I going wrong? Please, someone explain this to me.</p>
  
  <p><strong>PS:</strong> I appreciate even more worked examples, thanks.</p>