<p>In computer graphics Bresenham's line drawing algorithm used to draw line . But i want to know the properties why i can't draw vertical and horizontal line by this algorithm.</p>

CC BY-SA 4.0
2019-11-21T05:40:11.197Z
If you are smart you dont ise it!
joojaa
CC BY-SA 4.0
2019-11-21T09:46:46.177Z
The algorithm works in the eight octants. Drawing a line from (0,0) to (let's say) (10,0) should quite straightforward. Start with that and it'll be easy to see why it doesn't step as expected.
beyond
<2d-graphics><line-drawing><pixel-graphics>
Is it possible to draw horizontal and vertical line with Bresenham's line drawing algorithm?
ataush
# Is it possible to draw horizontal and vertical line with Bresenham's line drawing algorithm?

(Asked by: username_0 on 2019-11-21)

In computer graphics Bresenham's line drawing algorithm used to draw line . But i want to know the properties why i can't draw vertical and horizontal line by this algorithm.

**Tags:** 2d-graphics, line-drawing, pixel-graphics

> **Comments:**
> **username_1**: If you are smart you dont ise it!  
> **username_2**: The algorithm works in the eight octants. Drawing a line from (0,0) to (let's say) (10,0) should quite straightforward. Start with that and it'll be easy to see why it doesn't step as expected.  

---

## 0 answers

