base:bresenham_s_line_algorithm_2

This shows you the differences between two versions of the page.

base:bresenham_s_line_algorithm_2 [2015-04-17 04:30] 127.0.0.1 external edit |
base:bresenham_s_line_algorithm_2 [2016-04-09 21:05] (current) xiii |
||
---|---|---|---|

Line 3: | Line 3: | ||

Another basic Bresenham line routine by Hein. | Another basic Bresenham line routine by Hein. | ||

- | Things added by Bitbreaker: The original routine only handles 2 quadrants, by manipulating also inx/iny one can draw in all 4 quadrants. Also some hints for further speedup added. | + | Things added by Bitbreaker: The original routine only handles 2 quadrants, by manipulating also inx/iny one can draw in all 4 quadrants. Also some hints for further speedup added |

+ | | ||

+ | xIII: coord x_2 = 155 changed to x_**1** = 155 | ||

<code text> | <code text> | ||

Line 11: | Line 13: | ||

;coords | ;coords | ||

- | x_2 = 155 | + | x_1 = 155 |

x_2 = 0 | x_2 = 0 | ||

y_1 = 0 | y_1 = 0 |

base/bresenham_s_line_algorithm_2.txt · Last modified: 2016-04-09 21:05 by xiii