aclock icon indicating copy to clipboard operation
aclock copied to clipboard

use classic bresenham line draw algorithm

Open tenox7 opened this issue 6 years ago • 4 comments

tenox7 avatar Apr 03 '19 05:04 tenox7

https://www.geeksforgeeks.org/bresenhams-circle-drawing-algorithm/

tenox7 avatar Mar 14 '21 09:03 tenox7

I made this simple implementation.

https://github.com/simh/simh/blob/master/display/display.c#L812-L876

larsbrinkhoff avatar May 03 '22 09:05 larsbrinkhoff

I see the geeksforgeeks article is for drawing a circle. To go really classic, I'd suggest Minsky's algorithm. It draws an approximation of a circle, but I understand it's good enough to do trigonometry on a satellite.

larsbrinkhoff avatar May 03 '22 09:05 larsbrinkhoff

Ha! Interesting. Thank you! I will take a look at your implementation.

tenox7 avatar May 06 '22 01:05 tenox7