Bresenham线算法绘制线条

时间:2016-10-19 02:44:29

标签: c++ algorithm graphics bresenham

我试图在c ++绘图程序中实现Bresenham线算法。

当x增加时它会很好,但它似乎做了一个奇怪的算法

[2016-10-19 02:36:51 +0000] [12752] [INFO] Starting gunicorn 19.6.0
[2016-10-19 02:36:51 +0000] [12752] [ERROR] Retrying in 1 second.
[2016-10-19 02:36:52 +0000] [12752] [ERROR] Retrying in 1 second.
[2016-10-19 02:36:53 +0000] [12752] [ERROR] Retrying in 1 second.
[2016-10-19 02:36:54 +0000] [12752] [ERROR] Retrying in 1 second.
[2016-10-19 02:36:55 +0000] [12752] [ERROR] Retrying in 1 second.
[2016-10-19 02:36:56 +0000] [12752] [ERROR] Can't connect to ('0.0.0.0', 80)

我尝试过多种方法,例如翻转x,我已经根据多个示例重写了代码并且没有运气。

这是我转换的网站的链接

http://www.falloutsoftware.com/tutorials/dd/dd4.htm

以下是我的计划正在发生的事情的图片

enter image description here

0 个答案:

没有答案