Bitmap/Bresenham's line algorithm: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 275:
set /a dx=x2-x1
set /a dy=y2-y1
::Clipping done to avoid overflow
if %dx% neq 0 set /a o=y1 - ( x1 * dy / dx )
Line 327 ⟶ 329:
)
)
:: Start of Bresenham's algorithm
set stepy=1
|