Advertisement
Zeda

Integer Circle Algorithm Pseudocode

Dec 14th, 2011
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. ;**R is the radius
  2. ; X,Y are coordinates**
  3.  
  4. R→C ;This is an offset from a coordinate
  5. 0→D ;This is an offset from a coordinate
  6. R→A ;This is a counter
  7. -1→B ;Used to change the counter
  8. Repeat D>C
  9. <<plot pixels accordingly>>
  10. D+1→D
  11. B+2→B
  12. A-B→A
  13. If (A-1)<0
  14. A+R+R→A
  15. C-1→C
  16. B+1→B
  17. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement