cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
drawing a circle in the text mode
drawing a circle in the text mode
Aug 2, 2008 at 3:53pm UTC
dsfg
(2)
Hi, I'm looking for some way to 'draw' a circle in the text mode - I was able to get some shapes pretty similar to a circle, but nothing close enough, especially when the radius is large. Thanks in advance for your help.
Aug 2, 2008 at 4:01pm UTC
jmc
(137)
What you are looking for is called Bresenham's circle algorithm.
You can find loads of examples in the web e.g.
http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/bresenham.html
http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm
http://www.gamedev.net/reference/articles/article767.asp
// in pascal, but nevertheless the same concept
Aug 2, 2008 at 4:13pm UTC
dsfg
(2)
Yes, that's exactly what I was looking for - many thanks :)
Topic archived. No new replies allowed.